Hi,

This is the patch to improve the test case gcc.target/arm/scd42-1.c for both
UAL and non-UAL. It now checks UAL format assembly code for Thumb1 and
Thumb2 while non-UAL format assembly code for ARM mode.

With this patch, the test passes for both cases.

Thanks,
Tony 

2015-01-15  Tony Liu  <tony....@arm.com>

           * gcc.target/arm/scd42-1.c: Improve the check for UAL and non-UAL
cases.
diff --git a/gcc/testsuite/gcc.target/arm/scd42-1.c 
b/gcc/testsuite/gcc.target/arm/scd42-1.c
index f2bd629..420f7c4 100644
--- a/gcc/testsuite/gcc.target/arm/scd42-1.c
+++ b/gcc/testsuite/gcc.target/arm/scd42-1.c
@@ -13,4 +13,5 @@ unsigned load1(void)
     return 17;
 }
 
-/* { dg-final { scan-assembler "movs\[         ].*17" } } */
+/* { dg-final { scan-assembler "mov\[  ].*17" { target { arm_nothumb } } } } */
+/* { dg-final { scan-assembler "movs\[         ].*17" { target { ! arm_nothumb 
} } } } */

Reply via email to