]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Make aarch64/cmpbr.c more forgiving
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 29 Jul 2025 14:58:33 +0000 (15:58 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 29 Jul 2025 14:58:33 +0000 (15:58 +0100)
commit9c3f2cb35d03a33a49f996855e913be6d3af2437
tree33e34aaba0c378e2d386c349ace6921389809a8e
parent668936caf0662a4eea62144c98fdfc8cf30b79d8
testsuite: Make aarch64/cmpbr.c more forgiving

The 8-bit and 16-bit tests in cmpbr.c assumed an inverted operand
order ("w1, w0"), but it's possible to use the uninverted operand
order too.  This patch generalises the tests to support both forms.

This is a prerequisite for a later patch that adds a new
simplify-rtx.cc rule.

gcc/testsuite/
* gcc.target/aarch64/cmpbr.c: Support both operand orders
for 8-bit and 16-bit comparisons.
gcc/testsuite/gcc.target/aarch64/cmpbr.c