mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
tcg: Remove TCG_TARGET_HAS_{s}extract_{i32,i64}
Make extract and sextract "unconditional" in the sense that the opcodes are always present. Rely instead on TCG_TARGET_HAS_{s}extract_valid, now always defined. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
41736e7ce1
commit
c334de110e
14 changed files with 8 additions and 70 deletions
|
@ -2363,10 +2363,10 @@ static void fold_setcond_tst_pow2(OptContext *ctx, TCGOp *op, bool neg)
|
|||
shr_opc = INDEX_op_shr_i32;
|
||||
neg_opc = INDEX_op_neg_i32;
|
||||
if (TCG_TARGET_extract_valid(TCG_TYPE_I32, sh, 1)) {
|
||||
uext_opc = TCG_TARGET_HAS_extract_i32 ? INDEX_op_extract_i32 : 0;
|
||||
uext_opc = INDEX_op_extract_i32;
|
||||
}
|
||||
if (TCG_TARGET_sextract_valid(TCG_TYPE_I32, sh, 1)) {
|
||||
sext_opc = TCG_TARGET_HAS_sextract_i32 ? INDEX_op_sextract_i32 : 0;
|
||||
sext_opc = INDEX_op_sextract_i32;
|
||||
}
|
||||
break;
|
||||
case TCG_TYPE_I64:
|
||||
|
@ -2376,10 +2376,10 @@ static void fold_setcond_tst_pow2(OptContext *ctx, TCGOp *op, bool neg)
|
|||
shr_opc = INDEX_op_shr_i64;
|
||||
neg_opc = INDEX_op_neg_i64;
|
||||
if (TCG_TARGET_extract_valid(TCG_TYPE_I64, sh, 1)) {
|
||||
uext_opc = TCG_TARGET_HAS_extract_i64 ? INDEX_op_extract_i64 : 0;
|
||||
uext_opc = INDEX_op_extract_i64;
|
||||
}
|
||||
if (TCG_TARGET_sextract_valid(TCG_TYPE_I64, sh, 1)) {
|
||||
sext_opc = TCG_TARGET_HAS_sextract_i64 ? INDEX_op_sextract_i64 : 0;
|
||||
sext_opc = INDEX_op_sextract_i64;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue