mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tcg: Merge INDEX_op_or_{i32,i64}
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
6497af5b0d
commit
49bd751497
8 changed files with 16 additions and 19 deletions
|
@ -437,7 +437,8 @@ static uint64_t do_constant_folding_2(TCGOpcode op, uint64_t x, uint64_t y)
|
|||
case INDEX_op_and_vec:
|
||||
return x & y;
|
||||
|
||||
CASE_OP_32_64_VEC(or):
|
||||
case INDEX_op_or:
|
||||
case INDEX_op_or_vec:
|
||||
return x | y;
|
||||
|
||||
CASE_OP_32_64_VEC(xor):
|
||||
|
@ -2961,7 +2962,8 @@ void tcg_optimize(TCGContext *s)
|
|||
CASE_OP_32_64_VEC(not):
|
||||
done = fold_not(&ctx, op);
|
||||
break;
|
||||
CASE_OP_32_64_VEC(or):
|
||||
case INDEX_op_or:
|
||||
case INDEX_op_or_vec:
|
||||
done = fold_or(&ctx, op);
|
||||
break;
|
||||
CASE_OP_32_64_VEC(orc):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue