diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2019-06-13 12:57:04 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-06-13 12:57:04 +0100 |
commit | 41dbe0df9a26e3e08d01fb025ea7429ff1f3c779 (patch) | |
tree | 504859f5f01acacfe9e066364223f95542046a94 | |
parent | 4747524f9f243ca5ff1f146d37e423c00e923ee1 (diff) | |
parent | 899f08ad1d1231dbbfa67298413f05ed2679fb02 (diff) | |
download | qemu-41dbe0df9a26e3e08d01fb025ea7429ff1f3c779.zip qemu-41dbe0df9a26e3e08d01fb025ea7429ff1f3c779.tar.gz qemu-41dbe0df9a26e3e08d01fb025ea7429ff1f3c779.tar.bz2 |
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20190612' into staging
Fix vector arithmetic right shift helpers.
# gpg: Signature made Thu 13 Jun 2019 05:10:11 BST
# gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg: issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full]
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F
* remotes/rth/tags/pull-tcg-20190612:
tcg: Fix typos in helper_gvec_sar{8,32,64}v
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | accel/tcg/tcg-runtime-gvec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel/tcg/tcg-runtime-gvec.c b/accel/tcg/tcg-runtime-gvec.c index 3b6052f..51cb29c 100644 --- a/accel/tcg/tcg-runtime-gvec.c +++ b/accel/tcg/tcg-runtime-gvec.c @@ -874,7 +874,7 @@ void HELPER(gvec_sar8v)(void *d, void *a, void *b, uint32_t desc) intptr_t oprsz = simd_oprsz(desc); intptr_t i; - for (i = 0; i < oprsz; i += sizeof(vec8)) { + for (i = 0; i < oprsz; i += sizeof(int8_t)) { uint8_t sh = *(uint8_t *)(b + i) & 7; *(int8_t *)(d + i) = *(int8_t *)(a + i) >> sh; } @@ -898,7 +898,7 @@ void HELPER(gvec_sar32v)(void *d, void *a, void *b, uint32_t desc) intptr_t oprsz = simd_oprsz(desc); intptr_t i; - for (i = 0; i < oprsz; i += sizeof(vec32)) { + for (i = 0; i < oprsz; i += sizeof(int32_t)) { uint8_t sh = *(uint32_t *)(b + i) & 31; *(int32_t *)(d + i) = *(int32_t *)(a + i) >> sh; } @@ -910,7 +910,7 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b, uint32_t desc) intptr_t oprsz = simd_oprsz(desc); intptr_t i; - for (i = 0; i < oprsz; i += sizeof(vec64)) { + for (i = 0; i < oprsz; i += sizeof(int64_t)) { uint8_t sh = *(uint64_t *)(b + i) & 63; *(int64_t *)(d + i) = *(int64_t *)(a + i) >> sh; } |