scd42-1.c: Skip if -mcpu incompatible with Xscale is specified, not just -march.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 13 Oct 2016 17:55:00 +0000 (13:55 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 13 Oct 2016 17:55:00 +0000 (13:55 -0400)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/scd42-1.c
gcc/testsuite/gcc.target/arm/scd42-2.c

index a2be1a0..bd83dff 100644 (file)
@@ -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
index d1de24a..be60e64 100644 (file)
@@ -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" } */
 
index e077402..8cd4bde 100644 (file)
@@ -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)