diff options
author | David Hildenbrand <david@redhat.com> | 2019-10-21 10:57:10 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2019-10-21 17:32:49 +0200 |
commit | 49a7ce4e030a24c092c82076e23473ae9226fca9 (patch) | |
tree | 571e45bec565c4c449248c0ff53a91674904690d /target | |
parent | 8064af6b1dac60491df611e5c49199d2e1c368c4 (diff) | |
download | qemu-49a7ce4e030a24c092c82076e23473ae9226fca9.zip qemu-49a7ce4e030a24c092c82076e23473ae9226fca9.tar.gz qemu-49a7ce4e030a24c092c82076e23473ae9226fca9.tar.bz2 |
s390x/tcg: Fix VECTOR MULTIPLY LOGICAL ODD
We have to read from odd offsets.
Fixes: 2bf3ee38f1f8 ("s390x/tcg: Implement VECTOR MULTIPLY *")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20191021085715.3797-2-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/s390x/vec_int_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/vec_int_helper.c b/target/s390x/vec_int_helper.c index 68eaae4..03ae863 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); \ \ |