Revision e23886a9
b/tcg/arm/tcg-target.c | ||
---|---|---|
483 | 483 |
/* sxtb */ |
484 | 484 |
tcg_out32(s, 0x06af0070 | (cond << 28) | (rd << 12) | rn); |
485 | 485 |
} else { |
486 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
486 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
487 | 487 |
rd, 0, rn, SHIFT_IMM_LSL(24)); |
488 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
488 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
489 | 489 |
rd, 0, rd, SHIFT_IMM_ASR(24)); |
490 | 490 |
} |
491 | 491 |
} |
... | ... | |
503 | 503 |
/* sxth */ |
504 | 504 |
tcg_out32(s, 0x06bf0070 | (cond << 28) | (rd << 12) | rn); |
505 | 505 |
} else { |
506 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
506 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
507 | 507 |
rd, 0, rn, SHIFT_IMM_LSL(16)); |
508 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
508 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
509 | 509 |
rd, 0, rd, SHIFT_IMM_ASR(16)); |
510 | 510 |
} |
511 | 511 |
} |
... | ... | |
517 | 517 |
/* uxth */ |
518 | 518 |
tcg_out32(s, 0x06ff0070 | (cond << 28) | (rd << 12) | rn); |
519 | 519 |
} else { |
520 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
520 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
521 | 521 |
rd, 0, rn, SHIFT_IMM_LSL(16)); |
522 |
tcg_out_dat_reg(s, COND_AL, ARITH_MOV,
|
|
522 |
tcg_out_dat_reg(s, cond, ARITH_MOV,
|
|
523 | 523 |
rd, 0, rd, SHIFT_IMM_LSR(16)); |
524 | 524 |
} |
525 | 525 |
} |
Also available in: Unified diff