diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-25 05:46:22 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-25 05:46:22 +0200 |
commit | e23886a91d954aac08b8b1dd0ff08ce4dbb842be (patch) | |
tree | 0f1b9214e59d0d4322e50e8e4ce8d6a78231a82c /tcg/arm/tcg-target.c | |
parent | 20d97356c9df6d68fbd37d6334fdb7063f24eab6 (diff) |
tcg/arm: fix condition in zero/sign extension functions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/arm/tcg-target.c')
-rw-r--r-- | tcg/arm/tcg-target.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 2937c5adc8..8d23f47107 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -483,9 +483,9 @@ static inline void tcg_out_ext8s(TCGContext *s, int cond, /* sxtb */ tcg_out32(s, 0x06af0070 | (cond << 28) | (rd << 12) | rn); } 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)); - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, + tcg_out_dat_reg(s, cond, ARITH_MOV, rd, 0, rd, SHIFT_IMM_ASR(24)); } } @@ -503,9 +503,9 @@ static inline void tcg_out_ext16s(TCGContext *s, int cond, /* sxth */ tcg_out32(s, 0x06bf0070 | (cond << 28) | (rd << 12) | rn); } 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)); - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, + tcg_out_dat_reg(s, cond, ARITH_MOV, rd, 0, rd, SHIFT_IMM_ASR(16)); } } @@ -517,9 +517,9 @@ static inline void tcg_out_ext16u(TCGContext *s, int cond, /* uxth */ tcg_out32(s, 0x06ff0070 | (cond << 28) | (rd << 12) | rn); } 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)); - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, + tcg_out_dat_reg(s, cond, ARITH_MOV, rd, 0, rd, SHIFT_IMM_LSR(16)); } } |