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 <[email protected]>
* gcc.target/arm/thumb-ifcvt.c: Only run for -mthumb.
* gcc.target/arm/thumb-16bit-ops.c: Likewise.
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)