|
| From: | Richard Henderson |
| Subject: | Re: [PATCH 7/8] target/mips: Use tcg_constant_i32() in gen_msa_i5() |
| Date: | Sun, 3 Oct 2021 15:37:13 -0400 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/3/21 1:57 PM, Philippe Mathieu-Daudé wrote:
+ switch (MASK_MSA_I5(ctx->opcode)) {
+ case OPC_ADDVI_df:
+ case OPC_MAXI_U_df:
+ case OPC_MINI_U_df:
+ case OPC_CLTI_U_df:
+ case OPC_CLEI_U_df:
+ timm = tcg_constant_i32(extract32(ctx->opcode, 16, 5));
+ break;
+ case OPC_MAXI_S_df:
+ case OPC_MINI_S_df:
+ case OPC_CEQI_df:
+ case OPC_CLTI_S_df:
+ case OPC_CLEI_S_df:
+ timm = tcg_constant_i32(sextract32(ctx->opcode, 16, 5));
+ break;
+ case OPC_LDI_df:
+ timm = tcg_constant_i32(sextract32(ctx->opcode, 11, 10));
+ break;
+ default:
+ break;
+ }
Same comment wrt duplicating the switch, but, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |