[PATCH, ARM, testsuite] Improve scd42-1.c for UAL

2015-01-15 Thread Tony Liu
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  

   * 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 
} } } } */


Ping: [PATCH, ARM, testsuite] Improve scd42-1.c for UAL

2015-01-22 Thread Tony Liu
Ping

-Original Message-
From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org]
On Behalf Of Tony Liu
Sent: Thursday, January 15, 2015 8:10 PM
To: gcc-patches@gcc.gnu.org
Cc: Ramana Radhakrishnan; Richard Earnshaw
Subject: [PATCH, ARM, testsuite] Improve scd42-1.c for UAL

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  

   * gcc.target/arm/scd42-1.c: Improve the check for UAL and non-UAL
cases.