]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
combine-movs.c: Check movs for ARM mode and lsrs for Thumb2 mode.
authorTerry Guo <terry.guo@arm.com>
Thu, 13 Sep 2012 05:36:19 +0000 (05:36 +0000)
committerXuepeng Guo <xguo@gcc.gnu.org>
Thu, 13 Sep 2012 05:36:19 +0000 (05:36 +0000)
2012-09-12  Terry Guo  <terry.guo@arm.com>

        * gcc.target/arm/combine-movs.c: Check movs for ARM mode
        and lsrs for Thumb2 mode.

From-SVN: r191239

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/combine-movs.c

index 2ad0dfd292efbfdf03546760a88a7575d09c5198..1dcc336ad43352c0bbcda70e346f7ed297d00635 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-12  Terry Guo  <terry.guo@arm.com>
+
+       * gcc.target/arm/combine-movs.c: Check movs for ARM mode
+       and lsrs for Thumb2 mode.
+
 2012-09-12  Jan Hubicka  <jh@suse.cz>
 
        * gcc.dg/ipa/inlinehint-2.c: New testcase.
index 4209a33142712676b7b1965c6fc375ca8cf9c013..9ce257fb403a0ee6ba8897a54318467c63d8c359 100644 (file)
@@ -9,4 +9,5 @@ void foo (unsigned long r[], unsigned int d)
     r[i] = 0;
 }
 
-/* { dg-final { scan-assembler "movs\tr\[0-9\]" } } */
+/* { dg-final { scan-assembler "lsrs\tr\[0-9\]" { target arm_thumb2_ok } }} */
+/* { dg-final { scan-assembler "movs\tr\[0-9\]" { target { ! arm_thumb2_ok} } } } */