Hi all, This test fails to scan for an ite block when testing a compiler configured to produce armv8-a code by default. The reason the ite instruction is not produced is because the -mrestrict-it rules that are on by default for armv8-a don't allow ite blocks. This patch adds -mno-restrict-it to the test options to remove that restriction.
Test now passes on my arm-none-eabi compiler configured --with-arch=armv8-a. Committed as obvious with r224504. Cheers, Kyrill 2015-06-16 Kyrylo Tkachov <kyrylo.tkac...@arm.com> * gcc.target/arm/attr_thumb.c: Add -mno-restrict-it to dg-options.
diff --git a/gcc/testsuite/gcc.target/arm/attr_thumb.c b/gcc/testsuite/gcc.target/arm/attr_thumb.c index 0134021..4e98f5e 100644 --- a/gcc/testsuite/gcc.target/arm/attr_thumb.c +++ b/gcc/testsuite/gcc.target/arm/attr_thumb.c @@ -1,7 +1,7 @@ /* Check that attribute target thumb is recogniwed. */ /* { dg-do compile } */ /* { dg-require-effective-target arm_thumb2_ok } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-restrict-it" } */ /* { dg-final { scan-assembler ".thumb" } } */ /* { dg-final { scan-assembler "ite" } } */