diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-26 16:58:38 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-05 13:45:00 -0800 |
commit | 08a266e35e973237a56fe48311ac433cd46ff97f (patch) | |
tree | 7294d2148c13815a880f613cb59295cf22124819 /target/hexagon/idef-parser | |
parent | 93f367bb7fd94a52c4ba9bcc8029881f6cab1bb0 (diff) | |
download | qemu-08a266e35e973237a56fe48311ac433cd46ff97f.zip qemu-08a266e35e973237a56fe48311ac433cd46ff97f.tar.gz qemu-08a266e35e973237a56fe48311ac433cd46ff97f.tar.bz2 |
target/hexagon/idef-parser: Use gen_tmp for gen_pred_assign
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>
Diffstat (limited to 'target/hexagon/idef-parser')
-rw-r--r-- | target/hexagon/idef-parser/parser-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hexagon/idef-parser/parser-helpers.c b/target/hexagon/idef-parser/parser-helpers.c index be979da..760e499 100644 --- a/target/hexagon/idef-parser/parser-helpers.c +++ b/target/hexagon/idef-parser/parser-helpers.c @@ -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"); |