From d216761f9743a95466909613616e408edd6e312d Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Wed, 15 Jul 2015 09:45:10 +0000 Subject: [PATCH] [ARM][testsuite] Add -mfloat-abi=softfp to some xscale tests * gcc.target/arm/scd42-1.c: Add -mfloat-abi=softfp and appropriate dg-skip-if. * gcc.target/arm/scd42-3.c: Likewise. From-SVN: r225814 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/arm/scd42-1.c | 3 ++- gcc/testsuite/gcc.target/arm/scd42-3.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 75a83ae641e..28b9aeb488d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-07-15 Kyrylo Tkachov + + * gcc.target/arm/scd42-1.c: Add -mfloat-abi=softfp and appropriate + dg-skip-if. + * gcc.target/arm/scd42-3.c: Likewise. + 2015-07-15 Andrew Bennett * gcc.target/mips/mips.exp (mips-dg-options): Allow the post-arch diff --git a/gcc/testsuite/gcc.target/arm/scd42-1.c b/gcc/testsuite/gcc.target/arm/scd42-1.c index 420f7c4d859..d1de24a097f 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-1.c +++ b/gcc/testsuite/gcc.target/arm/scd42-1.c @@ -1,7 +1,8 @@ /* Verify that mov is preferred on XScale for loading a 1 byte constant. */ /* { dg-do compile } */ /* { dg-skip-if "incompatible options" { arm*-*-* } { "-march=*" } { "" } } */ -/* { dg-options "-mcpu=xscale -O" } */ +/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ +/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */ unsigned load1(void) __attribute__ ((naked)); unsigned load1(void) diff --git a/gcc/testsuite/gcc.target/arm/scd42-3.c b/gcc/testsuite/gcc.target/arm/scd42-3.c index eb90e43c4dc..e566cb2548c 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-3.c +++ b/gcc/testsuite/gcc.target/arm/scd42-3.c @@ -2,7 +2,8 @@ /* { dg-do compile } */ /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */ /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */ -/* { dg-options "-mcpu=xscale -O" } */ +/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ +/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */ unsigned load4(void) __attribute__ ((naked)); unsigned load4(void) -- 2.30.2