[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 070/114] target/arm: Use correct output type for gvec_sdot_*_b
From: |
Peter Maydell |
Subject: |
[PULL 070/114] target/arm: Use correct output type for gvec_sdot_*_b |
Date: |
Tue, 25 May 2021 16:02:40 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
The signed dot product routines produce a signed result.
Since we use -fwrapv, there is no functional change.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210525010358.152808-49-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/vec_helper.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c
index a3d80ecad05..48e3addd814 100644
--- a/target/arm/vec_helper.c
+++ b/target/arm/vec_helper.c
@@ -378,7 +378,7 @@ void HELPER(sve2_sqrdmlsh_d)(void *vd, void *vn, void *vm,
void HELPER(gvec_sdot_b)(void *vd, void *vn, void *vm, uint32_t desc)
{
intptr_t i, opr_sz = simd_oprsz(desc);
- uint32_t *d = vd;
+ int32_t *d = vd;
int8_t *n = vn, *m = vm;
for (i = 0; i < opr_sz / 4; ++i) {
@@ -408,7 +408,7 @@ void HELPER(gvec_udot_b)(void *vd, void *vn, void *vm,
uint32_t desc)
void HELPER(gvec_sdot_h)(void *vd, void *vn, void *vm, uint32_t desc)
{
intptr_t i, opr_sz = simd_oprsz(desc);
- uint64_t *d = vd;
+ int64_t *d = vd;
int16_t *n = vn, *m = vm;
for (i = 0; i < opr_sz / 8; ++i) {
@@ -439,7 +439,7 @@ void HELPER(gvec_sdot_idx_b)(void *vd, void *vn, void *vm,
uint32_t desc)
{
intptr_t i, segend, opr_sz = simd_oprsz(desc), opr_sz_4 = opr_sz / 4;
intptr_t index = simd_data(desc);
- uint32_t *d = vd;
+ int32_t *d = vd;
int8_t *n = vn;
int8_t *m_indexed = (int8_t *)vm + H4(index) * 4;
@@ -501,7 +501,7 @@ void HELPER(gvec_sdot_idx_h)(void *vd, void *vn, void *vm,
uint32_t desc)
{
intptr_t i, opr_sz = simd_oprsz(desc), opr_sz_8 = opr_sz / 8;
intptr_t index = simd_data(desc);
- uint64_t *d = vd;
+ int64_t *d = vd;
int16_t *n = vn;
int16_t *m_indexed = (int16_t *)vm + index * 4;
--
2.20.1
- [PULL 051/114] target/arm: Implement SVE2 SQSHRN, SQRSHRN, (continued)
- [PULL 051/114] target/arm: Implement SVE2 SQSHRN, SQRSHRN, Peter Maydell, 2021/05/25
- [PULL 056/114] target/arm: Implement SVE2 saturating multiply-add long, Peter Maydell, 2021/05/25
- [PULL 054/114] target/arm: Implement SVE2 bitwise ternary operations, Peter Maydell, 2021/05/25
- [PULL 058/114] target/arm: Implement SVE2 integer multiply-add long, Peter Maydell, 2021/05/25
- [PULL 060/114] target/arm: Implement SVE2 ADDHNB, ADDHNT, Peter Maydell, 2021/05/25
- [PULL 063/114] target/arm: Implement SVE2 RSUBHNB, RSUBHNT, Peter Maydell, 2021/05/25
- [PULL 059/114] target/arm: Implement SVE2 complex integer multiply-add, Peter Maydell, 2021/05/25
- [PULL 062/114] target/arm: Implement SVE2 SUBHNB, SUBHNT, Peter Maydell, 2021/05/25
- [PULL 066/114] target/arm: Implement SVE2 scatter store insns, Peter Maydell, 2021/05/25
- [PULL 064/114] target/arm: Implement SVE2 HISTCNT, HISTSEG, Peter Maydell, 2021/05/25
- [PULL 070/114] target/arm: Use correct output type for gvec_sdot_*_b,
Peter Maydell <=
- [PULL 074/114] target/arm: Split out formats for 3 vectors + 1 index, Peter Maydell, 2021/05/25
- [PULL 071/114] target/arm: Pass separate addend to {U, S}DOT helpers, Peter Maydell, 2021/05/25
- [PULL 067/114] target/arm: Implement SVE2 gather load insns, Peter Maydell, 2021/05/25
- [PULL 069/114] target/arm: Implement SVE2 SPLICE, EXT, Peter Maydell, 2021/05/25
- [PULL 065/114] target/arm: Implement SVE2 XAR, Peter Maydell, 2021/05/25
- [PULL 068/114] target/arm: Implement SVE2 FMMLA, Peter Maydell, 2021/05/25
- [PULL 072/114] target/arm: Pass separate addend to FCMLA helpers, Peter Maydell, 2021/05/25
- [PULL 076/114] target/arm: Implement SVE2 integer multiply-add (indexed), Peter Maydell, 2021/05/25
- [PULL 077/114] target/arm: Implement SVE2 saturating multiply-add high (indexed), Peter Maydell, 2021/05/25
- [PULL 081/114] target/arm: Implement SVE2 saturating multiply high (indexed), Peter Maydell, 2021/05/25