[gcc r16-9368] testsuite: require cortex-a53 in reg_equal_test.c test

Torbjorn Svensson via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:aea86c8697b9684bec708ee072b1da13a52c90f9

commit r16-9368-gaea86c8697b9684bec708ee072b1da13a52c90f9
Author: Torbjörn SVENSSON <[email protected]>
Date:   Mon Jul 20 20:36:45 2026 +0200

    testsuite: require cortex-a53 in reg_equal_test.c test
    
    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]>
    (cherry picked from commit 8d16b075796e77e2160bee01678b35fc0568dc36)

Diff:
---
 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 ()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.