projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2b1f8
)
tcg/optimize: Propagate sign info for setcond
author
Richard Henderson
<richard.henderson@linaro.org>
Thu, 26 Aug 2021 20:20:39 +0000
(13:20 -0700)
committer
Richard Henderson
<richard.henderson@linaro.org>
Fri, 29 Oct 2021 03:55:07 +0000
(20:55 -0700)
The result is either 0 or 1, which means that we have
a 2 bit signed result, and thus 62 bits of sign.
For clarity, use the smask_from_zmask function.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c
patch
|
blob
|
history
diff --git
a/tcg/optimize.c
b/tcg/optimize.c
index de1abd9cc3d66aa4b7827ea7a47332bb478211ac..5fa4d7285d51ffd85ba15545a762dda3211decde 100644
(file)
--- a/
tcg/optimize.c
+++ b/
tcg/optimize.c
@@
-1730,6
+1730,7
@@
static bool fold_setcond(OptContext *ctx, TCGOp *op)
}
ctx->z_mask = 1;
+ ctx->s_mask = smask_from_zmask(1);
return false;
}
@@
-1802,6
+1803,7
@@
static bool fold_setcond2(OptContext *ctx, TCGOp *op)
}
ctx->z_mask = 1;
+ ctx->s_mask = smask_from_zmask(1);
return false;
do_setcond_const: