https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101755
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Earnshaw <rearn...@gcc.gnu.org>: https://gcc.gnu.org/g:62082d278d1fc9773539244194061ab32556db4d commit r12-8108-g62082d278d1fc9773539244194061ab32556db4d Author: Richard Earnshaw <rearn...@arm.com> Date: Tue Apr 12 13:35:27 2022 +0100 arm: fix testsuite failure of reg_equal_test.c [PR101755] The test failure in PR101755 is due to the gimple optimizers getting smarter. But really we are just testing that RTL expansion is doing the right thing and annotating a constant accordingly. So rework the test to use GIMPLE input and simplify the code entirely. Also, this test only ever worked on architecture versions with the MOVW/MOVT instructions, so check for this before running. gcc/testsuite/ChangeLog: PR target/101755 * gcc.target/arm/reg_equal_test.c: Convert to gimple test. Restrict to architectures with MOVW/MOVT.