]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Enable 1- and 2-byte operands for v-test
authorAndreas Arnez <arnez@linux.ibm.com>
Mon, 9 Mar 2020 14:14:16 +0000 (15:14 +0100)
committerAndreas Arnez <arnez@linux.ibm.com>
Fri, 13 Mar 2020 19:08:29 +0000 (20:08 +0100)
commitea91ebf5dec2a8e469b5cabdb9ff11bc2f3b27b6
treec24f98b51f9a2f98203c6c90a2ba252d1265f992
parent5a35fe81017b63daea47f062894604979f25535e
s390x: Enable 1- and 2-byte operands for v-test

The v-test operation tests its operand against zero and sets the condition
code accordingly.  So far the operation was only supported for 4- and
8-byte operands.

Lift this restriction and enable 1- and 2-byte operands for v-test, using
the z/Architecture "test under mask" instructions TM, TMY, and TMLL.
Exploit this in the instruction selector, getting rid of the conversion to
a 4-byte operand.  This slightly reduces the generated code on s390x.
VEX/priv/host_s390_defs.c
VEX/priv/host_s390_isel.c