From: Torbjörn SVENSSON <[email protected]>

The original purpose of the test is to verify that, when the backend
emits a mov-pair sequence, the sequence carries a REG_EQUAL note for the
final constant value.  Make that precondition explicit instead of
depending on target-specific tuning behavior, by forcing the test to
a CPU with the required properties.

gcc/testsuite/ChangeLog:

        * gcc.target/arm/reg_equal_test.c: Add require effective target
        cortex-a53 for test.

Signed-off-by: Torbjörn SVENSSON <[email protected]>
---
 gcc/testsuite/gcc.target/arm/reg_equal_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/arm/reg_equal_test.c 
b/gcc/testsuite/gcc.target/arm/reg_equal_test.c
index d87c75cc27c4..0be435c11198 100644
--- a/gcc/testsuite/gcc.target/arm/reg_equal_test.c
+++ b/gcc/testsuite/gcc.target/arm/reg_equal_test.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-fgimple -O1 -fdump-rtl-expand" } */
-/* { dg-skip-if "" { ! { arm_thumb2_ok || arm_thumb1_movt_ok } } } */
+/* { dg-require-effective-target arm_cpu_cortex_a53_ok } */
+/* { dg-add-options arm_cpu_cortex_a53 } */
 
 void __GIMPLE (ssa,startwith ("expand"))
 x ()
-- 
2.54.0

Reply via email to