From 73c6609b21b51be4a0e785770582bea3b62c65f0 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Fri, 10 Jul 2015 12:02:13 +0000 Subject: [PATCH] attr_thumb.c: Skip if Thumb is not supported. 2015-07-10 Christophe Lyon * gcc.target/arm/attr_thumb.c: Skip if Thumb is not supported. * gcc.target/arm/flip-thumb.c: Likewise. From-SVN: r225665 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/arm/attr_thumb.c | 2 ++ gcc/testsuite/gcc.target/arm/flip-thumb.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 23782757548..8eab126a712 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-10 Christophe Lyon + + * gcc.target/arm/attr_thumb.c: Skip if Thumb is not supported. + * gcc.target/arm/flip-thumb.c: Likewise. + 2015-07-10 Uros Bizjak PR target/66813 diff --git a/gcc/testsuite/gcc.target/arm/attr_thumb.c b/gcc/testsuite/gcc.target/arm/attr_thumb.c index 02ddfdac6c3..eac47139dbf 100644 --- a/gcc/testsuite/gcc.target/arm/attr_thumb.c +++ b/gcc/testsuite/gcc.target/arm/attr_thumb.c @@ -1,5 +1,7 @@ /* Check that attribute target thumb is recognized. */ /* { dg-do compile } */ +/* Make sure the current multilib supports thumb. */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-O2 -mno-restrict-it" } */ /* { dg-final { scan-assembler-not "\\.arm" } } */ /* { dg-final { scan-assembler "\\.thumb_func" } } */ diff --git a/gcc/testsuite/gcc.target/arm/flip-thumb.c b/gcc/testsuite/gcc.target/arm/flip-thumb.c index 91547999427..355d6637755 100644 --- a/gcc/testsuite/gcc.target/arm/flip-thumb.c +++ b/gcc/testsuite/gcc.target/arm/flip-thumb.c @@ -1,5 +1,7 @@ /* Check -mflip-thumb. */ /* { dg-do compile } */ +/* Make sure the current multilib supports thumb. */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-O2 -mflip-thumb -mno-restrict-it" } */ /* { dg-final { scan-assembler "\\.arm" } } */ /* { dg-final { scan-assembler-times "\\.thumb_func" 1} } */ -- 2.30.2