]> sourceware.org Git - valgrind.git/commit
s390x: Don't emit "vector or with complement" on z13
authorAndreas Arnez <arnez@linux.ibm.com>
Mon, 7 Jun 2021 12:01:53 +0000 (14:01 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Mon, 7 Jun 2021 13:37:32 +0000 (15:37 +0200)
commit124ae6cfa303f0cc71ffd685620cb57c4f8f02bb
treea67d3669f4fecab725b55bf21c4b08dfb21e64b3
parentfa4d21af44861e504a398412c9a120b28d6ceb4e
s390x: Don't emit "vector or with complement" on z13

The z/Architecture instruction "vector or with complement" (VOC) can be
used as an optimization to combine "vector or" with "vector nor".  This is
exploited in Valgrind since commit 6c1cb1a0128b00858b973e.  However, VOC
requires the vector-enhancements facility 1, which is not installed on a
z13 CPU.  Thus Valgrind can now run into SIGILL on z13 when trying to
execute vector string instructions.

Fix this by suppressing the VOC optimization unless the
vector-enhancements facility 1 is recognized on the host.
VEX/priv/host_s390_isel.c
This page took 0.031432 seconds and 5 git commands to generate.