Re: [PATCH 02/11] tcg/loongarch64: Lower basic tcg vec ops to LSX

2023-08-28 Thread Jiajie Chen
There seems to some problem with the email server, try my another email address to send this email. On 2023/8/29 00:57, Richard Henderson wrote: On 8/28/23 08:19, Jiajie Chen wrote: +static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, + TCGReg

Re: [PATCH 02/11] tcg/loongarch64: Lower basic tcg vec ops to LSX

2023-08-28 Thread Richard Henderson
On 8/28/23 08:19, Jiajie Chen wrote: +static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, + TCGReg rd, int64_t v64) +{ +/* Try vldi if imm can fit */ +if (vece <= MO_32 && (-0x200 <= v64 && v64 <= 0x1FF)) { +uint32_t imm = (vece <<

[PATCH 02/11] tcg/loongarch64: Lower basic tcg vec ops to LSX

2023-08-28 Thread Jiajie Chen
LSX support on host cpu is detected via hwcap. Lower the following ops to LSX: - dup_vec - dupi_vec - dupm_vec - ld_vec - st_vec Signed-off-by: Jiajie Chen --- tcg/loongarch64/tcg-target-con-set.h | 2 + tcg/loongarch64/tcg-target-con-str.h | 1 + tcg/loongarch64/tcg-target.c.inc | 223