We'll need this for other generic expansions.
Signed-off-by: Richard Henderson <[email protected]>
---
tcg/tcg-op.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c
index 6145a171665..f3b1ee1fe43 100644
--- a/tcg/tcg-op.c
+++ b/tcg/tcg-op.c
@@ -366,6 +366,8 @@ void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo)
#undef DEF_CRRI
#undef DEF_CRRRRR
+static void gen_extrl_i64_i32(TCGTemp *dst, TCGTemp *src);
+
/*
* Generic expansions for templated operations.
* We have used compiler type checks to ensure all operands
@@ -492,6 +494,11 @@ static void gen_eqv(TCGType type, TCGTemp *dst, TCGTemp
*src1, TCGTemp *src2)
}
}
+static void gen_extrl_i64_i32(TCGTemp *dst, TCGTemp *src)
+{
+ gen_op_tt(INDEX_op_extrl_i64_i32, TCG_TYPE_I32, dst, src);
+}
+
static void gen_mov(TCGType type, TCGTemp *dst, TCGTemp *src)
{
if (src != dst) {
@@ -2293,8 +2300,7 @@ void tcg_gen_abs_i64(TCGv_i64 ret, TCGv_i64 a)
void tcg_gen_extrl_i64_i32(TCGv_i32 ret, TCGv_i64 arg)
{
- tcg_gen_op2(INDEX_op_extrl_i64_i32, TCG_TYPE_I32,
- tcgv_i32_arg(ret), tcgv_i64_arg(arg));
+ gen_extrl_i64_i32(tcgv_i32_temp(ret), tcgv_i64_temp(arg));
}
void tcg_gen_extrh_i64_i32(TCGv_i32 ret, TCGv_i64 arg)
--
2.53.0