]> Git Repo - qemu.git/commitdiff
target/arm: Use tcg_constant in do_clast_scalar
authorRichard Henderson <[email protected]>
Tue, 26 Apr 2022 16:30:36 +0000 (09:30 -0700)
committerPeter Maydell <[email protected]>
Thu, 28 Apr 2022 12:38:15 +0000 (13:38 +0100)
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-id: 20220426163043[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target/arm/translate-sve.c

index c3d3f301c9999fecf34fe8de937b38d9a0baf707..7a39ed0c0625b130e9eee5b46ce71993ef2ac324 100644 (file)
@@ -2926,7 +2926,7 @@ static void do_clast_scalar(DisasContext *s, int esz, int pg, int rm,
                             bool before, TCGv_i64 reg_val)
 {
     TCGv_i32 last = tcg_temp_new_i32();
-    TCGv_i64 ele, cmp, zero;
+    TCGv_i64 ele, cmp;
 
     find_last_active(s, last, esz, pg);
 
@@ -2946,10 +2946,9 @@ static void do_clast_scalar(DisasContext *s, int esz, int pg, int rm,
     ele = load_last_active(s, last, rm, esz);
     tcg_temp_free_i32(last);
 
-    zero = tcg_const_i64(0);
-    tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, zero, ele, reg_val);
+    tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, tcg_constant_i64(0),
+                        ele, reg_val);
 
-    tcg_temp_free_i64(zero);
     tcg_temp_free_i64(cmp);
     tcg_temp_free_i64(ele);
 }
This page took 0.031068 seconds and 4 git commands to generate.