From 90bca4ed80de6437b4101a65eb29fb034b793981 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 13 Oct 2016 07:25:43 +0000 Subject: [PATCH] movhi_movw.c: Enable test for ARM mode. 2016-10-12 Thomas Preud'homme 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/arm/movdi_movw.c | 6 ++++-- gcc/testsuite/gcc.target/arm/movhi_movw.c | 2 +- gcc/testsuite/gcc.target/arm/movsi_movw.c | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0d4f0bfb97..bdf8b750469 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-10-13 Thomas Preud'homme + + * 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 * gcc.dg/tree-ssa/evrp6.c: New test. diff --git a/gcc/testsuite/gcc.target/arm/movdi_movw.c b/gcc/testsuite/gcc.target/arm/movdi_movw.c index 0f6b839da61..fe7812436e4 100644 --- a/gcc/testsuite/gcc.target/arm/movdi_movw.c +++ b/gcc/testsuite/gcc.target/arm/movdi_movw.c @@ -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 } } */ diff --git a/gcc/testsuite/gcc.target/arm/movhi_movw.c b/gcc/testsuite/gcc.target/arm/movhi_movw.c index b097a8a019c..d0d2bbb418e 100644 --- a/gcc/testsuite/gcc.target/arm/movhi_movw.c +++ b/gcc/testsuite/gcc.target/arm/movhi_movw.c @@ -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 diff --git a/gcc/testsuite/gcc.target/arm/movsi_movw.c b/gcc/testsuite/gcc.target/arm/movsi_movw.c index d50906e76ab..34970581397 100644 --- a/gcc/testsuite/gcc.target/arm/movsi_movw.c +++ b/gcc/testsuite/gcc.target/arm/movsi_movw.c @@ -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 -- 2.30.2