[pushed] arm: fix testsuite failure of reg_equal_test.c [PR101755]

Richard Earnshaw rearnsha@arm.com
Tue Apr 12 12:38:52 GMT 2022


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.
---
 gcc/testsuite/gcc.target/arm/reg_equal_test.c | 25 ++++++-------------
 1 file changed, 8 insertions(+), 17 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arm-fix-testsuite-failure-of-reg_equal_test.c-PR1017.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20220412/60d24985/attachment.bin>


More information about the Gcc-patches mailing list