target/hexagon/idef-parser: Use gen_tmp for gen_pred_assign
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Feb 2023 02:58:38 +0000 (16:58 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 21:45:00 +0000 (13:45 -0800)
The allocation is immediately followed by tcg_gen_mov_i32,
so the initial assignment of zero is 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 be979dac863cb22ddb993d6930ae31010e082f08..760e499149907d4dce7d8d2d108fa985edbac3d0 100644 (file)
@@ -1743,7 +1743,7 @@ void gen_pred_assign(Context *c, YYLTYPE *locp, HexValue *left_pred,
              "Predicate assign not allowed in ternary!");
     /* Extract predicate TCGv */
     if (is_direct) {
-        *left_pred = gen_tmp_value(c, locp, "0", 32, UNSIGNED);
+        *left_pred = gen_tmp(c, locp, 32, UNSIGNED);
     }
     /* Extract first 8 bits, and store new predicate value */
     OUT(c, locp, "tcg_gen_mov_i32(", left_pred, ", ", &r, ");\n");