From 150cc0b54f5b257115c221483bd11ddfd361062c Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Wed, 24 Jun 2015 14:08:03 +0000 Subject: [PATCH] Skip tests for inappropriate multilibs. 2015-06-24 Ramana Radhakrishnan * gcc.target/arm/fixed_float_conversion.c: Skip for inappropriate multilibs. * gcc.target/arm/memset-inline-10.c: Likewise. * gcc.target/arm/pr58784.c: Likewise. * gcc.target/arm/pr59985.C: Likewise. * gcc.target/arm/vfp-1.c: Likewise and test only for the non fma cases. From-SVN: r224899 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.target/arm/fixed_float_conversion.c | 1 + gcc/testsuite/gcc.target/arm/memset-inline-10.c | 2 ++ gcc/testsuite/gcc.target/arm/pr58784.c | 2 ++ gcc/testsuite/gcc.target/arm/pr59985.C | 1 + gcc/testsuite/gcc.target/arm/vfp-1.c | 3 ++- 6 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4de42859817..40d8497fa54 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2015-06-24 Ramana Radhakrishnan + + * gcc.target/arm/fixed_float_conversion.c: Skip for inappropriate + multilibs. + * gcc.target/arm/memset-inline-10.c: Likewise. + * gcc.target/arm/pr58784.c: Likewise. + * gcc.target/arm/pr59985.C: Likewise. + * gcc.target/arm/vfp-1.c: Likewise and test only for the non fma cases. + 2015-06-24 Renlin Li * gcc.target/aarch64/arm_align_max_pwr.c: New. diff --git a/gcc/testsuite/gcc.target/arm/fixed_float_conversion.c b/gcc/testsuite/gcc.target/arm/fixed_float_conversion.c index 078b103745d..05ccd14c8de 100644 --- a/gcc/testsuite/gcc.target/arm/fixed_float_conversion.c +++ b/gcc/testsuite/gcc.target/arm/fixed_float_conversion.c @@ -3,6 +3,7 @@ /* { dg-require-effective-target arm_vfp3_ok } */ /* { dg-options "-O1" } */ /* { dg-add-options arm_vfp3 } */ +/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ float fixed_to_float (int i) diff --git a/gcc/testsuite/gcc.target/arm/memset-inline-10.c b/gcc/testsuite/gcc.target/arm/memset-inline-10.c index d3b777c3eaf..c1087c8e693 100644 --- a/gcc/testsuite/gcc.target/arm/memset-inline-10.c +++ b/gcc/testsuite/gcc.target/arm/memset-inline-10.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=armv7-a -mfloat-abi=hard -mfpu=neon -O2" } */ +/* { dg-skip-if "need SIMD instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ +/* { dg-skip-if "need SIMD instructions" { *-*-* } { "-mfpu=vfp*" } { "" } } */ #define BUF 100 long a[BUF]; diff --git a/gcc/testsuite/gcc.target/arm/pr58784.c b/gcc/testsuite/gcc.target/arm/pr58784.c index 4ee3ef5a4fb..29a0f73cc0f 100644 --- a/gcc/testsuite/gcc.target/arm/pr58784.c +++ b/gcc/testsuite/gcc.target/arm/pr58784.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-skip-if "incompatible options" { arm_thumb1 } { "*" } { "" } } */ /* { dg-options "-march=armv7-a -mfloat-abi=hard -mfpu=neon -marm -O2" } */ +/* { dg-skip-if "need hardfp ABI" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ + typedef struct __attribute__ ((__packed__)) { diff --git a/gcc/testsuite/gcc.target/arm/pr59985.C b/gcc/testsuite/gcc.target/arm/pr59985.C index 1351c486fe3..97d5915592f 100644 --- a/gcc/testsuite/gcc.target/arm/pr59985.C +++ b/gcc/testsuite/gcc.target/arm/pr59985.C @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-skip-if "incompatible options" { arm_thumb1 } { "*" } { "" } } */ /* { dg-options "-g -fcompare-debug -O2 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard" } */ +/* { dg-skip-if "need hardfp abi" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ extern void *f1 (unsigned long, unsigned long); extern const struct line_map *f2 (void *, int, unsigned int, const char *, unsigned int); diff --git a/gcc/testsuite/gcc.target/arm/vfp-1.c b/gcc/testsuite/gcc.target/arm/vfp-1.c index b6bb7be9995..9aa53024038 100644 --- a/gcc/testsuite/gcc.target/arm/vfp-1.c +++ b/gcc/testsuite/gcc.target/arm/vfp-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp -ffp-contract=off" } */ /* { dg-require-effective-target arm_vfp_ok } */ +/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ extern float fabsf (float); extern float sqrtf (float); -- 2.30.2