diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2016-10-13 13:55:00 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2016-10-13 13:55:00 -0400 |
commit | 18d34307e243ab3f7342f0860338dc8858235efa (patch) | |
tree | 2df31425af02449691e7a887a27c110546d426bd /gcc | |
parent | d67dd0be9467f0a2842abf163254abf1c6cabaab (diff) | |
download | gcc-18d34307e243ab3f7342f0860338dc8858235efa.zip gcc-18d34307e243ab3f7342f0860338dc8858235efa.tar.gz gcc-18d34307e243ab3f7342f0860338dc8858235efa.tar.bz2 |
scd42-1.c: Skip if -mcpu incompatible with Xscale is specified, not just -march.
2016-10-13 Sandra Loosemore <sandra@codesourcery.com>
gcc/testsuite/
* scd42-1.c: Skip if -mcpu incompatible with Xscale is specified,
not just -march.
* scd42-2.c: Fix existing logic to skip if -mcpu is incompatible
with Xscale.
From-SVN: r241132
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/scd42-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/scd42-2.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a2be1a0..bd83dff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-10-13 Sandra Loosemore <sandra@codesourcery.com> + + * scd42-1.c: Skip if -mcpu incompatible with Xscale is specified, + not just -march. + * scd42-2.c: Fix existing logic to skip if -mcpu is incompatible + with Xscale. + 2016-10-13 Martin Sebor <msebor@redhat.com> * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Cast 0 to wint_t diff --git a/gcc/testsuite/gcc.target/arm/scd42-1.c b/gcc/testsuite/gcc.target/arm/scd42-1.c index d1de24a..be60e64 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-1.c +++ b/gcc/testsuite/gcc.target/arm/scd42-1.c @@ -1,6 +1,7 @@ /* Verify that mov is preferred on XScale for loading a 1 byte constant. */ /* { dg-do compile } */ -/* { dg-skip-if "incompatible options" { arm*-*-* } { "-march=*" } { "" } } */ +/* { 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-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ /* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */ diff --git a/gcc/testsuite/gcc.target/arm/scd42-2.c b/gcc/testsuite/gcc.target/arm/scd42-2.c index e077402..8cd4bde 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-2.c +++ b/gcc/testsuite/gcc.target/arm/scd42-2.c @@ -1,10 +1,10 @@ /* Verify that mov is preferred on XScale for loading a 2 byte constant. */ /* { dg-do compile } */ -/* { dg-options "-mcpu=xscale -O" } */ /* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */ /* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */ /* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */ /* { dg-require-effective-target arm32 } */ +/* { dg-options "-mcpu=xscale -O" } */ unsigned load2(void) __attribute__ ((naked)); unsigned load2(void) |