diff options
| author | Max Chou <max.chou@sifive.com> | 2023-06-23 00:16:24 +0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-06-26 17:33:00 +0200 |
| commit | 70bfde9a7de7fa3495d9e2bd7142cb1bc656484e (patch) | |
| tree | b09d7a0f191af97f6f3b35ab50c7c864b16de621 | |
| parent | 1b65b4f54c7f7d07b5d35fac5f7de3e75f5f21a0 (diff) | |
| download | focaccia-qemu-70bfde9a7de7fa3495d9e2bd7142cb1bc656484e.tar.gz focaccia-qemu-70bfde9a7de7fa3495d9e2bd7142cb1bc656484e.zip | |
tcg: Fix temporary variable in tcg_gen_gvec_andcs
The 5th parameter of tcg_gen_gvec_2s should be replaced by the temporary tmp variable in the tcg_gen_gvec_andcs function. Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Signed-off-by: Max Chou <max.chou@sifive.com> Message-Id: <20230622161646.32005-9-max.chou@sifive.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
| -rw-r--r-- | tcg/tcg-op-gvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index 95a588d6d2..a062239804 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -2774,7 +2774,7 @@ void tcg_gen_gvec_andcs(unsigned vece, uint32_t dofs, uint32_t aofs, TCGv_i64 tmp = tcg_temp_ebb_new_i64(); tcg_gen_dup_i64(vece, tmp, c); - tcg_gen_gvec_2s(dofs, aofs, oprsz, maxsz, c, &g); + tcg_gen_gvec_2s(dofs, aofs, oprsz, maxsz, tmp, &g); tcg_temp_free_i64(tmp); } |