diff mbox

[testsuite] ARM: check for thumb1 or thumb2 support

Message ID 4E010802.2070209@codesourcery.com
State New
Headers show

Commit Message

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

Comments

Ramana Radhakrishnan June 21, 2011, 9:38 p.m. UTC | #1
On 21 June 2011 22:07, Janis Johnson <janisjo@codesourcery.com> wrote:
> 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?
>

Ok

Thanks,
Ramana
diff mbox

Patch

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() {