Patchwork [ARM] Cleanup test runs -

login
register
mail settings
Submitter Ramana Radhakrishnan
Date March 27, 2012, 10:28 a.m.
Message ID <CACUk7=U=oaPA+6eFGHjXJNdF3pbYihoJSgXncjOoc=Bcud4t9g@mail.gmail.com>
Download mbox | patch
Permalink /patch/148914/
State New
Headers show

Comments

Ramana Radhakrishnan - March 27, 2012, 10:28 a.m.
Hi,

I noticed that the tests were failing in ARM mode. Fixed thusly as
these tests are only meant to be run for Thumb state.

Committed to trunk.

regards.
Ramana

2012-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	* gcc.target/arm/thumb-ifcvt.c: Only run for -mthumb.
	* gcc.target/arm/thumb-16bit-ops.c: Likewise.

Patch

Index: gcc/testsuite/gcc.target/arm/thumb-16bit-ops.c
===================================================================
--- gcc/testsuite/gcc.target/arm/thumb-16bit-ops.c	(revision 185854)
+++ gcc/testsuite/gcc.target/arm/thumb-16bit-ops.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* Check that the compiler properly uses 16-bit encodings where available.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_thumb2_ok } */
-/* { dg-options "-Os -fno-builtin" } */
+/* { dg-options "-Os -fno-builtin -mthumb" } */
 
 int
 f (int a, int b )
Index: gcc/testsuite/gcc.target/arm/thumb-ifcvt.c
===================================================================
--- gcc/testsuite/gcc.target/arm/thumb-ifcvt.c	(revision 185854)
+++ gcc/testsuite/gcc.target/arm/thumb-ifcvt.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* Check that Thumb 16-bit shifts can be if-converted.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_thumb2_ok } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -mthumb" } */
 
 int
 foo (int a, int b)