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 9cddfd370ff..801ea56498d 100644
--- a/tcg/tcg-op.c
+++ b/tcg/tcg-op.c
@@ -411,6 +411,8 @@ void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo)
#undef DEF4
#undef DEF6
+static void gen_extrl_i64_i32(TCGTemp *dst, TCGTemp *src);
+
/*
* Generic expansions for templated operations.
* We have used compiler type checks to ensure all TCGTemp
@@ -534,6 +536,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) {
@@ -2267,8 +2274,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