diff options
author | Guo Hongyu <guohongyu24@mails.ucas.ac.cn> | 2024-12-19 20:23:11 +0800 |
---|---|---|
committer | Bibo Mao <maobibo@loongson.cn> | 2024-12-27 11:29:43 +0800 |
commit | 02ce6cea71be4f6774351f5e658d50044c5b53b2 (patch) | |
tree | 70a70be846e245f70c63a48f29bf670e4fae79ba | |
parent | 38d0939b86e2eef6f6a622c6f1f7befda0146595 (diff) | |
download | qemu-02ce6cea71be4f6774351f5e658d50044c5b53b2.zip qemu-02ce6cea71be4f6774351f5e658d50044c5b53b2.tar.gz qemu-02ce6cea71be4f6774351f5e658d50044c5b53b2.tar.bz2 |
target/loongarch: Fix vldi inst
Refer to the link below for a description of the vldi instructions:
https://jia.je/unofficial-loongarch-intrinsics-guide/lsx/misc/#synopsis_88
Fixed errors in vldi instruction implementation.
Signed-off-by: Guo Hongyu <guohongyu24@mails.ucas.ac.cn>
Tested-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
-rw-r--r-- | target/loongarch/tcg/insn_trans/trans_vec.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/tcg/insn_trans/trans_vec.c.inc b/target/loongarch/tcg/insn_trans/trans_vec.c.inc index 92b1d22..d317dfc 100644 --- a/target/loongarch/tcg/insn_trans/trans_vec.c.inc +++ b/target/loongarch/tcg/insn_trans/trans_vec.c.inc @@ -3480,7 +3480,7 @@ static uint64_t vldi_get_value(DisasContext *ctx, uint32_t imm) break; case 1: /* data: {2{16'0, imm[7:0], 8'0}} */ - data = (t << 24) | (t << 8); + data = (t << 40) | (t << 8); break; case 2: /* data: {2{8'0, imm[7:0], 16'0}} */ |