]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Support And1/Or1, improve handling of Int1 expressions
authorAndreas Arnez <arnez@linux.ibm.com>
Wed, 5 Feb 2020 17:18:49 +0000 (18:18 +0100)
committerAndreas Arnez <arnez@linux.ibm.com>
Fri, 13 Mar 2020 18:16:31 +0000 (19:16 +0100)
commit5a35fe81017b63daea47f062894604979f25535e
treef3f57b41a29c7bd8335b0199fa6fa113497b0161
parent73ab20e67818ccca943f033b8afa0d7869bc75e3
s390x: Support And1/Or1, improve handling of Int1 expressions

This provides an instruction selector for Int1-expressions that supports
And1 and Or1.  This implementation tries to keep values in registers as
much as possible, to avoid too many conversions from a Boolean value to a
condition code or vice versa.  To this end, the new function
s390_isel_int1_expr() is added, which handles bit-typed expressions that
are supposed to end up in a register.

Also change the representation of Int1 values in registers and always
sign-extend them to 64 bits.
VEX/priv/host_s390_defs.c
VEX/priv/host_s390_isel.c