diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-11-17 11:31:35 -0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-11-22 14:25:06 +0300 |
commit | d38d749a9935092e7f71107f6944b3a30a420fda (patch) | |
tree | a6796f312e2f8ea57d4087619a5f4135c122d556 /target/arm | |
parent | 14f0c7e3be8529d3df79b07170f3fe547e961bd9 (diff) |
target/arm: Fix SME FMOPA (16-bit), BFMOPA
Perform the loop increment unconditionally, not nested
within the predication.
Cc: qemu-stable@nongnu.org
Fixes: 3916841ac75 ("target/arm: Implement FMOPA, FMOPS (widening)")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1985
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231117193135.1180657-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 3efd8495735c69b863476e9003e624877382a72d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/arm')
-rw-r--r-- | target/arm/sme_helper.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/target/arm/sme_helper.c b/target/arm/sme_helper.c index 73dd838330..8856773635 100644 --- a/target/arm/sme_helper.c +++ b/target/arm/sme_helper.c @@ -1070,10 +1070,9 @@ void HELPER(sme_fmopa_h)(void *vza, void *vzn, void *vzm, void *vpn, m = f16mop_adj_pair(m, pcol, 0); *a = f16_dotadd(*a, n, m, &fpst_std, &fpst_odd); - - col += 4; - pcol >>= 4; } + col += 4; + pcol >>= 4; } while (col & 15); } row += 4; @@ -1106,10 +1105,9 @@ void HELPER(sme_bfmopa)(void *vza, void *vzn, void *vzm, void *vpn, m = f16mop_adj_pair(m, pcol, 0); *a = bfdotadd(*a, n, m); - - col += 4; - pcol >>= 4; } + col += 4; + pcol >>= 4; } while (col & 15); } row += 4; |