|
From: | Weiwei Li |
Subject: | Re: [PATCH v2 4/6] target/riscv: add support for zdinx |
Date: | Sat, 1 Jan 2022 14:06:29 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
在 2022/1/1 上午4:07, Richard Henderson 写道:
On 12/30/21 7:23 PM, Weiwei Li wrote:+ if (reg_num != 0) { + switch (get_ol(ctx)) {get_xl, not get_ol, two instances.+#ifdef TARGET_RISCV32 + { + TCGv_i64 t = ftemp_new(ctx);+ tcg_gen_concat_i32_i64(t, cpu_gpr[reg_num], cpu_gpr[reg_num + 1]);+ return t; + } +#else + { + TCGv_i64 t = ftemp_new(ctx);+ tcg_gen_deposit_i64(t, cpu_gpr[reg_num], cpu_gpr[reg_num + 1], 32, 32);+ return t; + }Unify these two cases and use tcg_gen_concat_tl_i64.
OK. I'll fix this.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |