]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/hexagon/idef-parser: Use gen_tmp for gen_rvalue_pred
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Feb 2023 03:00:35 +0000 (17:00 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 21:45:11 +0000 (13:45 -0800)
The allocation is immediately followed by either tcg_gen_mov_i32
or gen_read_preg (which contains tcg_gen_mov_i32), so the zero
initialization is immediately discarded.

Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hexagon/idef-parser/parser-helpers.c

index 760e499149907d4dce7d8d2d108fa985edbac3d0..c0e6f2190c682c6172957fc0b32fca52b11427e3 100644 (file)
@@ -1889,7 +1889,7 @@ HexValue gen_rvalue_pred(Context *c, YYLTYPE *locp, HexValue *pred)
         bool is_dotnew = pred->is_dotnew;
         char predicate_id[2] = { pred->pred.id, '\0' };
         char *pred_str = (char *) &predicate_id;
-        *pred = gen_tmp_value(c, locp, "0", 32, UNSIGNED);
+        *pred = gen_tmp(c, locp, 32, UNSIGNED);
         if (is_dotnew) {
             OUT(c, locp, "tcg_gen_mov_i32(", pred,
                 ", hex_new_pred_value[");