* 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
+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.
#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)
#undef __aarch64_vdupq_laneq_u64
#endif
+
+#endif
+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
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-mgeneral-regs-only" } */
+/* { dg-excess-errors "You must enable" } */
+
+#include "arm_neon.h"
+
+int
+foo ()
+{
+ return 0;
+}