combine-movs.c: Check movs for ARM mode and lsrs for Thumb2 mode.

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
This commit is contained in:
Terry Guo 2012-09-13 05:36:19 +00:00 committed by Xuepeng Guo
parent c1736aea43
commit cb85ddf7eb
2 changed files with 7 additions and 1 deletions

View 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.

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