[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 41/44] target/loongarch: Implement vld vst
From: |
Richard Henderson |
Subject: |
Re: [RFC PATCH v3 41/44] target/loongarch: Implement vld vst |
Date: |
Mon, 24 Apr 2023 17:01:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 4/20/23 09:07, Song Gao wrote:
+#include "tcg/tcg-internal.h"
This is internal to tcg. Do not use.
+ tcg_gen_qemu_ld_i128(val, addr, ctx->mem_idx, MO_128);
+ set_vreg64(TCGV128_HIGH(val), a->vd, 1);
+ set_vreg64(TCGV128_LOW(val), a->vd, 0);
You want tcg_gen_extr_i128_i64().
+ tcg_gen_mov_i64(TCGV128_LOW(val), al);
+ tcg_gen_mov_i64(TCGV128_HIGH(val), ah);
+ tcg_gen_qemu_st_i128(val, addr, ctx->mem_idx, MO_128);
tcg_gen_concat_i64_i128().
+++ b/target/loongarch/lsx_helper.c
@@ -12,6 +12,7 @@
#include "fpu/softfloat.h"
#include "internals.h"
#include "tcg/tcg.h"
+#include "tcg/tcg-ldst.h"
Do not use. Use "exec/cpu_ldst.h".
r~
- [RFC PATCH v3 10/44] target/loongarch: Implement vavg/vavgr, (continued)
- [RFC PATCH v3 10/44] target/loongarch: Implement vavg/vavgr, Song Gao, 2023/04/20
- [RFC PATCH v3 28/44] target/loongarch: Implement vssrlrn vssrarn, Song Gao, 2023/04/20
- [RFC PATCH v3 32/44] target/loongarch: Implement vfrstp, Song Gao, 2023/04/20
- [RFC PATCH v3 22/44] target/loongarch: Implement vsll vsrl vsra vrotr, Song Gao, 2023/04/20
- [RFC PATCH v3 26/44] target/loongarch: Implement vsrlrn vsrarn, Song Gao, 2023/04/20
- [RFC PATCH v3 37/44] target/loongarch: Implement vbitsel vset, Song Gao, 2023/04/20
- [RFC PATCH v3 41/44] target/loongarch: Implement vld vst, Song Gao, 2023/04/20
- Re: [RFC PATCH v3 41/44] target/loongarch: Implement vld vst,
Richard Henderson <=
- [RFC PATCH v3 23/44] target/loongarch: Implement vsllwil vextl, Song Gao, 2023/04/20
- [RFC PATCH v3 36/44] target/loongarch: Implement vfcmp, Song Gao, 2023/04/20
- [RFC PATCH v3 29/44] target/loongarch: Implement vclo vclz, Song Gao, 2023/04/20