tcg/aarch64: Implement INDEX_op_lea

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson committed 2026-10-30 07:06:16 -05:00
1 parent 25fd2d5a64
commit 8ca8296cb1
2 files changed
+10 -3

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@
#define TCG_TARGET_sextract_valid(type, ofs, len) 1
#define TCG_TARGET_deposit_valid(type, ofs, len) 1
#define TCG_TARGET_lea_sh_valid(type, sh) 0
#define TCG_TARGET_lea_imm_valid(type, imm) 0
#define TCG_TARGET_lea_sh_valid(type, sh) ((sh) < tcg_type_bits(type))
#define TCG_TARGET_lea_imm_valid(type, imm) ((imm) == 0)
#endif
+8 -1
View File
@@ -3081,8 +3081,15 @@ static const TCGOutOpStore outop_st = {
.out_r = tcg_out_st,
};
static void tgen_lea(TCGContext *s, TCGType type, TCGReg a0, TCGReg a1,
TCGReg a2, unsigned sh, tcg_target_long imm)
{
tcg_out_insn(s, addsub_realshift, ADD_LSL, type, a0, a1, a2, sh);
}
static const TCGOutOpLea outop_lea = {
.base.static_constraint = C_NotImplemented,
.base.static_constraint = C_O1_I2(r, r, r),
.out = tgen_lea,
};
static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,