[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/9] s390x/tcg: Fix VECTOR MULTIPLY LOGICAL ODD
From: |
Cornelia Huck |
Subject: |
[PULL 3/9] s390x/tcg: Fix VECTOR MULTIPLY LOGICAL ODD |
Date: |
Tue, 22 Oct 2019 11:54:22 +0200 |
From: David Hildenbrand <address@hidden>
We have to read from odd offsets.
Fixes: 2bf3ee38f1f8 ("s390x/tcg: Implement VECTOR MULTIPLY *")
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target/s390x/vec_int_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/s390x/vec_int_helper.c b/target/s390x/vec_int_helper.c
index 68eaae407b47..03ae8631d958 100644
--- a/target/s390x/vec_int_helper.c
+++ b/target/s390x/vec_int_helper.c
@@ -488,7 +488,7 @@ void HELPER(gvec_vmlo##BITS)(void *v1, const void *v2,
const void *v3, \
{
\
int i, j;
\
\
- for (i = 0, j = 0; i < (128 / TBITS); i++, j += 2) {
\
+ for (i = 0, j = 1; i < (128 / TBITS); i++, j += 2) {
\
const uint##TBITS##_t a = s390_vec_read_element##BITS(v2, j);
\
const uint##TBITS##_t b = s390_vec_read_element##BITS(v3, j);
\
\
--
2.21.0
- [PULL 0/9] more s390x fixes, Cornelia Huck, 2019/10/22
- [PULL 1/9] s390x/cpumodel: Add missing visit_free, Cornelia Huck, 2019/10/22
- [PULL 2/9] s390x/mmu: Remove duplicate check for MMU_DATA_STORE, Cornelia Huck, 2019/10/22
- [PULL 3/9] s390x/tcg: Fix VECTOR MULTIPLY LOGICAL ODD,
Cornelia Huck <=
- [PULL 4/9] s390x/tcg: Fix VECTOR MULTIPLY AND ADD *, Cornelia Huck, 2019/10/22
- [PULL 5/9] s390x/tcg: Fix VECTOR SHIFT RIGHT ARITHMETIC BY BYTE, Cornelia Huck, 2019/10/22
- [PULL 6/9] s390x/tcg: Fix VECTOR SUBTRACT COMPUTE BORROW INDICATION, Cornelia Huck, 2019/10/22
- [PULL 7/9] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW INDICATION, Cornelia Huck, 2019/10/22
- [PULL 8/9] s390x/tcg: Fix VECTOR SUBTRACT WITH BORROW COMPUTE BORROW INDICATION, Cornelia Huck, 2019/10/22
- [PULL 9/9] s390x/kvm: Set default cpu model for all machine classes, Cornelia Huck, 2019/10/22
- Re: [PULL 0/9] more s390x fixes, Peter Maydell, 2019/10/22