]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mips specific changes for BZ 507033
authorFlorian Krohm <flo2030@eich-krohm.de>
Sat, 2 Aug 2025 12:43:54 +0000 (12:43 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Sat, 2 Aug 2025 12:43:54 +0000 (12:43 +0000)
commit697efef3720d5c78c7957ba107fb2f3307f53fd8
tree83fc2576f8cf96ee68591b7ab9eb288bf8e89ec2
parenta2c294b3b19ef4af391014e7b3cbc5ec75b2bd68
mips specific changes for BZ 507033

Rework code to use Iop_ClzNat32 instead of the deprecated Iop_Clz32.
Likewise for Iop_Clz64.

For Iop_Clz32 a CLZ insn will be emitted which behaves naturally when
its input is 0. That is: CLZ(0) == 32.
Similarly, for Iop_Clz64 a DCLZ will be emitted with DCLZ(0) == 64.
That means we can replace Iop_Clz32/64 with Iop_ClzNat32/64 and remove
any IR that handles the input-is-zero case.
See also commit a5c48217e94.

Part of fixing https://bugs.kde.org/show_bug.cgi?id=507033
VEX/priv/guest_mips_toIR.c
VEX/priv/host_mips_isel.c
memcheck/tests/vbit-test/irops.c