mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 06:50:32 +08:00
[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:
parent
3bbbd3ee8e
commit
2a62514fca
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
11
gcc/testsuite/gcc.target/aarch64/arm_neon-nosimd-error.c
Normal file
11
gcc/testsuite/gcc.target/aarch64/arm_neon-nosimd-error.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user