From 83a5c910417a5d3a3012d3f2fce4cf507eb3a21c Mon Sep 17 00:00:00 2001 From: Jiong Wang Date: Wed, 18 May 2016 09:43:04 +0000 Subject: [PATCH] [testsuite] Guard float64_t with __aarch64__ 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 | 7 +++++++ .../gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h | 4 +++- .../gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3df77a06067..6c51f7114a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-05-18 Jiong Wang + + * 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 * gcc.target/i386/avx512bw-vpbroadcast-1.c: New test. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h index cf90825f873..dde0e45a2b8 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h @@ -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); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c index 26223763c59..efa9b5f2ece 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c @@ -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}; -- 2.30.2