1
0
mirror of https://gitlab.com/qemu-project/qemu synced 2024-07-08 20:17:27 +00:00

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>
This commit is contained in:
Richard Henderson 2024-05-27 19:20:44 +00:00
parent 75b5ffdd0d
commit 825d53f35a

View File

@ -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;
}