Patchwork [testsuite] ARM: adjust skips for Xscale test

login
register
mail settings
Submitter Janis Johnson
Date June 21, 2011, 9:03 p.m.
Message ID <4E010718.1030701@codesourcery.com>
Download mbox | patch
Permalink /patch/101367/
State New
Headers show

Comments

Janis Johnson - June 21, 2011, 9:03 p.m.
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  <janisjo@codesourcery.com>

	* gcc.target/arm/scd42-3.c: Allow -march-xscale; skip if -mcpu
	is not xscale.
Richard Earnshaw - June 22, 2011, 8:23 a.m.
On 21/06/11 22:03, Janis Johnson wrote:
> 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?
> 
> 
> gcc-20110621-2
> 
> 
> 2011-06-21  Janis Johnson  <janisjo@codesourcery.com>
> 
> 	* gcc.target/arm/scd42-3.c: Allow -march-xscale; skip if -mcpu
> 	is not xscale.
> 

OK.

R.

Patch

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));