[AArch64] Error out of arm_neon.h if nofp/nosimd

* config/aarch64/arm_neon.h: Error out if AdvancedSIMD
	is not available.

	* gcc.target/aarch64/arm_neon-nosimd-error.c: New test.

From-SVN: r219594
This commit is contained in:
Kyrylo Tkachov 2015-01-14 12:03:22 +00:00 committed by Kyrylo Tkachov
parent 3bbbd3ee8e
commit 2a62514fca
4 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/arm_neon.h: Error out if AdvancedSIMD
is not available.
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* doc/invoke.texi (mapcs): Mention deprecation.

View File

@ -27,6 +27,10 @@
#ifndef _AARCH64_NEON_H_
#define _AARCH64_NEON_H_
#ifndef __ARM_NEON
#error You must enable AdvancedSIMD instructions to use arm_neon.h
#else
#include <stdint.h>
#define __AARCH64_UINT64_C(__C) ((uint64_t) __C)
@ -25209,3 +25213,5 @@ __INTERLEAVE_LIST (zip)
#undef __aarch64_vdupq_laneq_u64
#endif
#endif

View File

@ -1,3 +1,7 @@
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/arm_neon-nosimd-error.c: New test.
2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR target/64453

View File

@ -0,0 +1,11 @@
/* { dg-do compile } */
/* { dg-options "-mgeneral-regs-only" } */
/* { dg-excess-errors "You must enable" } */
#include "arm_neon.h"
int
foo ()
{
return 0;
}