movhi_movw.c: Enable test for ARM mode.

2016-10-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/
    * gcc.target/arm/movhi_movw.c: Enable test for ARM mode.
    * gcc.target/arm/movsi_movw.c: Likewise.
    * gcc.target/arm/movdi_movw.c: Likewise and adapt scan-assembler
    directive to work on big endian targets.

From-SVN: r241086
This commit is contained in:
Thomas Preud'homme 2016-10-13 07:25:43 +00:00 committed by Thomas Preud'homme
parent cea4bad102
commit 90bca4ed80
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gcc.target/arm/movhi_movw.c: Enable test for ARM mode.
* gcc.target/arm/movsi_movw.c: Likewise.
* gcc.target/arm/movdi_movw.c: Likewise and adapt scan-assembler
directive to work on big endian targets.
2016-10-12 Kugan Vivekanandarajah <kuganv@linaro.org>
* gcc.dg/tree-ssa/evrp6.c: New test.

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { arm_thumb2 || arm_thumb1_movt_ok } } } */
/* { dg-do compile { target { arm_thumb2_ok || arm_thumb1_movt_ok } } } */
/* { dg-options "-O2" } */
long long
@ -7,4 +7,6 @@ movdi (int a)
return 0xF0F0;
}
/* { dg-final { scan-assembler-times "movw\tr0, #61680" 1 } } */
/* Accept r1 because big endian targets put the low bits in the highest
numbered register of a pair. */
/* { dg-final { scan-assembler-times "movw\tr\[01\], #61680" 1 } } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { arm_thumb2 || arm_thumb1_movt_ok } } } */
/* { dg-do compile { target { arm_thumb2_ok || arm_thumb1_movt_ok } } } */
/* { dg-options "-O2" } */
short

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { arm_thumb2 || arm_thumb1_movt_ok } } } */
/* { dg-do compile { target { arm_thumb2_ok || arm_thumb1_movt_ok } } } */
/* { dg-options "-O2" } */
int