[patch] Use dg-skip-if in several ARM testcases.

Kazu Hirata kazu@codesourcery.com
Fri Jun 13 23:27:00 GMT 2008


Hi,

Attached is a patch to use dg-skip-if in several ARM testcases.

Without this patch, these testcases fail when multilib options
conflict with those options specified in dg-options.

Tested on arm-none-eabi.  OK to apply?

Kazu Hirata

2008-06-13  Kazu Hirata  <kazu@codesourcery.com>

	* gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
	Skip if the multilib testing specifies -march that does not
	agree with the one specified in the testcase.

Index: gcc/testsuite/gcc.dg/arm-g2.c
===================================================================
--- gcc/testsuite/gcc.dg/arm-g2.c	(revision 136622)
+++ gcc/testsuite/gcc.dg/arm-g2.c	(working copy)
@@ -1,6 +1,7 @@
 /* Verify that hardware multiply is preferred on XScale. */
 /* { dg-do compile } */
 /* { dg-options "-mcpu=xscale -O2" } */
+/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=xscale" } } */
 /* { dg-require-effective-target arm32 } */
 
 /* Brett Gaines' test case. */
Index: gcc/testsuite/gcc.dg/arm-mmx-1.c
===================================================================
--- gcc/testsuite/gcc.dg/arm-mmx-1.c	(revision 136622)
+++ gcc/testsuite/gcc.dg/arm-mmx-1.c	(working copy)
@@ -3,6 +3,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O -mno-apcs-frame -mcpu=iwmmxt -mabi=iwmmxt" } */
 /* { dg-skip-if "" { *-*-* } { "-mfloat-abi=softfp" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=iwmmxt" } } */
 /* { dg-require-effective-target arm32 } */
 /* { dg-final { scan-assembler "ldmfd\[ 	]sp!.*ip,\[ ]*pc" } } */
 
Index: gcc/testsuite/gcc.dg/arm-scd42-2.c
===================================================================
--- gcc/testsuite/gcc.dg/arm-scd42-2.c	(revision 136622)
+++ gcc/testsuite/gcc.dg/arm-scd42-2.c	(working copy)
@@ -1,6 +1,7 @@
 /* Verify that mov is preferred on XScale for loading a 2 byte constant. */
 /* { dg-do compile } */
 /* { dg-options "-mcpu=xscale -O" } */
+/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=xscale" } } */
 /* { dg-require-effective-target arm32 } */
 
 unsigned load2(void) __attribute__ ((naked));



More information about the Gcc-patches mailing list