[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 5/6] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW INDICATION
From: |
Richard Henderson |
Subject: |
Re: [PATCH v1 5/6] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW INDICATION |
Date: |
Fri, 18 Oct 2019 12:11:36 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 10/18/19 9:10 AM, David Hildenbrand wrote:
> Testing this, there seems to be something messed up. We are dealing with
> unsigned numbers. "Each operand is treated as an unsigned binary integer."
> Let's just implement as written in the PoP:
>
> "A subtraction is performed by adding the contents of
> the second operand with the bitwise complement of
> the third operand along with a borrow indication from
> the rightmost bit position of the fourth operand and
> the result is placed in the first operand."
>
> Fixes: 48390a7c2716 ("s390x/tcg: Implement VECTOR SUBTRACT WITH BORROW
> INDICATION")
> Signed-off-by: David Hildenbrand <address@hidden>
> ---
> target/s390x/translate_vx.inc.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v1 0/6] s390x/tcg: Vector instruction fixes, David Hildenbrand, 2019/10/18
- [PATCH v1 2/6] s390x/tcg: Fix VECTOR MULTIPLY AND ADD *, David Hildenbrand, 2019/10/18
- [PATCH v1 3/6] s390x/tcg: Fix VECTOR SHIFT RIGHT ARITHMETIC BY BYTE, David Hildenbrand, 2019/10/18
- [PATCH v1 1/6] s390x/tcg: Fix VECTOR MULTIPLY LOGICAL ODD, David Hildenbrand, 2019/10/18
- [PATCH v1 5/6] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW INDICATION, David Hildenbrand, 2019/10/18
- Re: [PATCH v1 5/6] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW INDICATION,
Richard Henderson <=
- [PATCH v1 4/6] s390x/tcg: Fix VECTOR SUBTRACT COMPUTE BORROW INDICATION, David Hildenbrand, 2019/10/18
- [PATCH v1 6/6] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW COMPUTE BORROW INDICATION, David Hildenbrand, 2019/10/18