tcg-ppc64: Cleanup i32 constants to tcg_out_cmp
Nothing else in the call chain ensures that these constants don't have garbage in the high bits. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
4c314da6d1
commit
991041a4eb
@ -1059,6 +1059,11 @@ static void tcg_out_cmp(TCGContext *s, int cond, TCGArg arg1, TCGArg arg2,
|
||||
int imm;
|
||||
uint32_t op;
|
||||
|
||||
/* Simplify the comparisons below wrt CMPI. */
|
||||
if (type == TCG_TYPE_I32) {
|
||||
arg2 = (int32_t)arg2;
|
||||
}
|
||||
|
||||
switch (cond) {
|
||||
case TCG_COND_EQ:
|
||||
case TCG_COND_NE:
|
||||
|
Loading…
Reference in New Issue
Block a user