]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Fix VLRL and VSTRL insns (Bug 498422)
authorFlorian Krohm <flo2030@eich-krohm.de>
Thu, 6 Mar 2025 18:39:26 +0000 (18:39 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Thu, 6 Mar 2025 18:39:26 +0000 (18:39 +0000)
commitec0c87aebf6b56d582b63d873e55a4274b0b6b41
tree14c0bbbed1c0142ad5de26f82bdb8e518b4a4768
parentb98855efc89a402357469fbde06912a3bc0b0bfd
s390x: Fix VLRL and VSTRL insns   (Bug 498422)

The replacement field for these insns is 12-bit wide. So its value
cannot possibly be represented by a UChar. Use UShort instead.

This was found by disasm-test like so:

./disasm-test --run vlrl
*** mismatch VEX: |vlrl  %v6,255,4|    objdump: |vlrl  %v6,4095,4|

./disasm-test --run vstrl
*** mismatch VEX: |vstrl  %v6,255(%r4),7|   objdump: |vstrl  %v6,4095(%r4),7|

Fixes https://bugs.kde.org/show_bug.cgi?id=498422
NEWS
VEX/priv/guest_s390_toIR.c