[testsuite] Guard float64_t with __aarch64__
authorJiong Wang <jiong.wang@arm.com>
Wed, 18 May 2016 09:43:04 +0000 (09:43 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Wed, 18 May 2016 09:43:04 +0000 (09:43 +0000)
gcc/testsuite/
        * gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h: Guard float64_t
        with __aarch64__.
        * gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c: Guard variable
        declarations under __aarch64__ and __ARM_FEATURE_FMA.

From-SVN: r236370

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h
gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c

index 3df77a060679ac7ea19847e02cd5c23f41ef7122..6c51f7114a329b5a1516379c9be20e442438de2e 100644 (file)
@@ -1,3 +1,10 @@
+2016-05-18  Jiong Wang  <jiong.wang@arm.com>
+
+        * gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h: Guard float64_t
+        with __aarch64__.
+        * gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c: Guard variable
+        declarations under __aarch64__ and __ARM_FEATURE_FMA.
+
 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.target/i386/avx512bw-vpbroadcast-1.c: New test.
index cf90825f87391b72aca9a29980210d21f4321c04..dde0e45a2b8c8d0d1a01791f5f7c5b2452a0eaec 100644 (file)
@@ -136,8 +136,10 @@ static ARRAY(result, poly, 16, 4);
 #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE)
 static ARRAY(result, float, 16, 4);
 #endif
-static ARRAY(result, float, 64, 1);
 static ARRAY(result, float, 32, 2);
+#ifdef __aarch64__
+static ARRAY(result, float, 64, 1);
+#endif
 static ARRAY(result, int, 8, 16);
 static ARRAY(result, int, 16, 8);
 static ARRAY(result, int, 32, 4);
index 26223763c59c849607b5320f6ec37098a556ce2e..efa9b5f2ece5ce44dc2f8135379127c9b6821def 100644 (file)
@@ -2,6 +2,8 @@
 #include "arm-neon-ref.h"
 #include "compute-ref-data.h"
 
+#if defined(__aarch64__) && defined(__ARM_FEATURE_FMA)
+
 #define A0 123.4f
 #define A1 -3.8f
 #define A2 -29.4f
@@ -56,8 +58,6 @@ float64_t delem1 = DE1;
 float64_t delem2 = DE2;
 float64_t delem3 = DE3;
 
-#if defined(__aarch64__) && defined(__ARM_FEATURE_FMA)
-
 /* Expected results for vfms_n.  */
 
 VECT_VAR_DECL(expectedfms0, float, 32, 2) [] = {A0 + -B0 * E0, A1 + -B1 * E0};