mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
tcg: Merge INDEX_op_rot{l,r}_{i32,i64}
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
03568c0d53
commit
005a87e148
7 changed files with 50 additions and 56 deletions
|
@ -464,16 +464,16 @@ static uint64_t do_constant_folding_2(TCGOpcode op, TCGType type,
|
|||
}
|
||||
return (int64_t)x >> (y & 63);
|
||||
|
||||
case INDEX_op_rotr_i32:
|
||||
return ror32(x, y & 31);
|
||||
|
||||
case INDEX_op_rotr_i64:
|
||||
case INDEX_op_rotr:
|
||||
if (type == TCG_TYPE_I32) {
|
||||
return ror32(x, y & 31);
|
||||
}
|
||||
return ror64(x, y & 63);
|
||||
|
||||
case INDEX_op_rotl_i32:
|
||||
return rol32(x, y & 31);
|
||||
|
||||
case INDEX_op_rotl_i64:
|
||||
case INDEX_op_rotl:
|
||||
if (type == TCG_TYPE_I32) {
|
||||
return rol32(x, y & 31);
|
||||
}
|
||||
return rol64(x, y & 63);
|
||||
|
||||
case INDEX_op_not:
|
||||
|
@ -3025,8 +3025,8 @@ void tcg_optimize(TCGContext *s)
|
|||
case INDEX_op_remu:
|
||||
done = fold_remainder(&ctx, op);
|
||||
break;
|
||||
CASE_OP_32_64(rotl):
|
||||
CASE_OP_32_64(rotr):
|
||||
case INDEX_op_rotl:
|
||||
case INDEX_op_rotr:
|
||||
case INDEX_op_sar:
|
||||
case INDEX_op_shl:
|
||||
case INDEX_op_shr:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue