This patch allows an Xscale-specific test to run if multilib flags
include -march=xscale and to be skipped if -mcpu= is used with
anything besides xscale.

OK for trunk, and later for 4.6?
2011-06-21  Janis Johnson  <jani...@codesourcery.com>

        * gcc.target/arm/scd42-3.c: Allow -march-xscale; skip if -mcpu
        is not xscale.

Index: gcc.target/arm/scd42-3.c
===================================================================
--- gcc.target/arm/scd42-3.c    (revision 175269)
+++ gcc.target/arm/scd42-3.c    (working copy)
@@ -1,6 +1,7 @@
 /* Verify that ldr is preferred on XScale for loading a 3 or 4 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-options "-mcpu=xscale -O" } */
 
 unsigned load4(void) __attribute__ ((naked));

Reply via email to