]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: require cortex-a53 in reg_equal_test.c test
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 20 Jul 2026 18:36:45 +0000 (20:36 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 22 Jul 2026 10:24:30 +0000 (12:24 +0200)
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 <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/reg_equal_test.c

index d87c75cc27c45daaff059c5c74600fcaf95a71cc..0be435c111983f4f6cda038af2eaa8a0e2da486f 100644 (file)
@@ -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 ()