tcg/arm: fix condition in zero/sign extension functions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
20d97356c9
commit
e23886a91d
@ -483,9 +483,9 @@ static inline void tcg_out_ext8s(TCGContext *s, int cond,
|
|||||||
/* sxtb */
|
/* sxtb */
|
||||||
tcg_out32(s, 0x06af0070 | (cond << 28) | (rd << 12) | rn);
|
tcg_out32(s, 0x06af0070 | (cond << 28) | (rd << 12) | rn);
|
||||||
} else {
|
} else {
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rn, SHIFT_IMM_LSL(24));
|
rd, 0, rn, SHIFT_IMM_LSL(24));
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rd, SHIFT_IMM_ASR(24));
|
rd, 0, rd, SHIFT_IMM_ASR(24));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -503,9 +503,9 @@ static inline void tcg_out_ext16s(TCGContext *s, int cond,
|
|||||||
/* sxth */
|
/* sxth */
|
||||||
tcg_out32(s, 0x06bf0070 | (cond << 28) | (rd << 12) | rn);
|
tcg_out32(s, 0x06bf0070 | (cond << 28) | (rd << 12) | rn);
|
||||||
} else {
|
} else {
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rn, SHIFT_IMM_LSL(16));
|
rd, 0, rn, SHIFT_IMM_LSL(16));
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rd, SHIFT_IMM_ASR(16));
|
rd, 0, rd, SHIFT_IMM_ASR(16));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -517,9 +517,9 @@ static inline void tcg_out_ext16u(TCGContext *s, int cond,
|
|||||||
/* uxth */
|
/* uxth */
|
||||||
tcg_out32(s, 0x06ff0070 | (cond << 28) | (rd << 12) | rn);
|
tcg_out32(s, 0x06ff0070 | (cond << 28) | (rd << 12) | rn);
|
||||||
} else {
|
} else {
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rn, SHIFT_IMM_LSL(16));
|
rd, 0, rn, SHIFT_IMM_LSL(16));
|
||||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
||||||
rd, 0, rd, SHIFT_IMM_LSR(16));
|
rd, 0, rd, SHIFT_IMM_LSR(16));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user