s390x/tcg: Fix VECTOR SUBTRACT COMPUTE BORROW INDICATION
commit23e797749fff754b8a136ee37607c6448b06cfca
authorDavid Hildenbrand <david@redhat.com>
Mon, 21 Oct 2019 08:57:13 +0000 (21 10:57 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Oct 2019 15:33:29 +0000 (21 17:33 +0200)
treee77da2026cfdf1ff2c01bbfccc918e3c27bd214d
parentb57b336876d08e303d5957d05bae77508ed0e4a2
s390x/tcg: Fix VECTOR SUBTRACT COMPUTE BORROW INDICATION

Looks like my idea of what a "borrow" is was wrong. The PoP says:

 "If the resulting subtraction results in a carry out of bit zero, a value
 of one is placed in the corresponding element of the first operand;
 otherwise, a value of zero is placed in the corresponding element"

As clarified by Richard, all we have to do is invert the result.

Fixes: 1ee2d7ba72f6 ("s390x/tcg: Implement VECTOR SUBTRACT COMPUTE BORROW INDICATION")
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20191021085715.3797-5-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/translate_vx.inc.c
target/s390x/vec_int_helper.c