Modify three tests that require thumb support by skipping them if
neither thumb1 nor thumb2 is supported.

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

        * gcc.target/arm/20031108-1.c: Require thumb1 or thumb2.
        * gcc.target/arm/pr40482.c: Likewise.
        * gcc.target/arm/stack-corruption.c: Likewise.

Index: gcc.target/arm/20031108-1.c
===================================================================
--- gcc.target/arm/20031108-1.c (revision 175269)
+++ gcc.target/arm/20031108-1.c (working copy)
@@ -1,5 +1,6 @@
 /* PR optimization/10467  */
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-O2 -mthumb" } */
 
 typedef enum {Ident_1} Enumeration;
Index: gcc.target/arm/pr40482.c
===================================================================
--- gcc.target/arm/pr40482.c    (revision 175269)
+++ gcc.target/arm/pr40482.c    (working copy)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-mthumb -Os" }  */
 /* { dg-final { scan-assembler-not "ldr" } } */
 
Index: gcc.target/arm/stack-corruption.c
===================================================================
--- gcc.target/arm/stack-corruption.c   (revision 175269)
+++ gcc.target/arm/stack-corruption.c   (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-O -mthumb -fno-omit-frame-pointer" } */
 
 int main() {

Reply via email to