From 18d34307e243ab3f7342f0860338dc8858235efa Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Thu, 13 Oct 2016 13:55:00 -0400 Subject: [PATCH] scd42-1.c: Skip if -mcpu incompatible with Xscale is specified, not just -march. 2016-10-13 Sandra Loosemore 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/arm/scd42-1.c | 3 ++- 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 a2be1a0d747..bd83dffa780 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-10-13 Sandra Loosemore + + * 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 * 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 d1de24a097f..be60e649015 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 e077402344b..8cd4bde475d 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) -- 2.30.2