diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-05-27 19:20:44 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-06-19 10:55:12 -0700 |
commit | 825d53f35a1d7fb0c8cab520d0f14688b947f888 (patch) | |
tree | 73df7abb962f5a8ba81e74d5e6dd2ad22b8b11d1 /tcg/loongarch64 | |
parent | 75b5ffdd0d026d77d23e59c18c56803d8e7e0e01 (diff) | |
download | qemu-825d53f35a1d7fb0c8cab520d0f14688b947f888.zip qemu-825d53f35a1d7fb0c8cab520d0f14688b947f888.tar.gz qemu-825d53f35a1d7fb0c8cab520d0f14688b947f888.tar.bz2 |
tcg/loongarch64: Support LASX in tcg_out_dupi_vec
Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/loongarch64')
-rw-r--r-- | tcg/loongarch64/tcg-target.c.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 9a8f67c..c7d0c78 100644 --- a/tcg/loongarch64/tcg-target.c.inc +++ b/tcg/loongarch64/tcg-target.c.inc @@ -1743,7 +1743,12 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, int64_t value = sextract64(v64, 0, 8 << vece); if (-0x200 <= value && value <= 0x1FF) { uint32_t imm = (vece << 10) | ((uint32_t)v64 & 0x3FF); - tcg_out_opc_vldi(s, rd, imm); + + if (type == TCG_TYPE_V256) { + tcg_out_opc_xvldi(s, rd, imm); + } else { + tcg_out_opc_vldi(s, rd, imm); + } return; } |