]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix testsuite scan failure on loongarch64
authorJeff Law <jeffrey.law@oss.qualcomm.com>
Sat, 7 Feb 2026 18:49:30 +0000 (11:49 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Sat, 7 Feb 2026 18:50:43 +0000 (11:50 -0700)
commit8ad11691d3daab965fc34572e7683fe02b25e741
tree735d481136ed446fc996da4827fd4ff621d9a383
parent7f4476239b1f8337a88844fb6dd98a9b1906c1d7
Fix testsuite scan failure on loongarch64

Robin's patch to fix nonzero bits for the result of a popcount triggered a
minor testsuite scan failure for loongarch.  Essentially it was expecting to
see an ANDI for a zero-extend, but after the change we get a slli with a count
0, which is used for sign extension on loongarch.

Both are likely equally performant.  So this just adjusts the test to accept
both forms.  Now one could argue that the result of the popcount is already
sign extended and you'd be right -- that's a separate missed optimization issue
and unrelated to this testsuite regression.

Anyway, pushing this to the trunk.

gcc/testsuite/
* gcc.dg/pr90838.c: Adjust expected output for loongarch.
gcc/testsuite/gcc.dg/pr90838.c