aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-02-26 17:00:35 -1000
committerRichard Henderson <richard.henderson@linaro.org>2023-03-05 13:45:11 -0800
commite0df97777c11c5f62313f8b1395a358b6fa02cb7 (patch)
treed9ccd6e8aacf7ee80f1b4ca4a4d5c2c36ea63bcd /target/hexagon
parent08a266e35e973237a56fe48311ac433cd46ff97f (diff)
downloadqemu-e0df97777c11c5f62313f8b1395a358b6fa02cb7.zip
qemu-e0df97777c11c5f62313f8b1395a358b6fa02cb7.tar.gz
qemu-e0df97777c11c5f62313f8b1395a358b6fa02cb7.tar.bz2
target/hexagon/idef-parser: Use gen_tmp for gen_rvalue_pred
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>
Diffstat (limited to 'target/hexagon')
-rw-r--r--target/hexagon/idef-parser/parser-helpers.c2
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 760e499..c0e6f21 100644
--- a/target/hexagon/idef-parser/parser-helpers.c
+++ b/target/hexagon/idef-parser/parser-helpers.c
@@ -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[");