mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 11:19:01 +00:00
optimize: Add missing extrh/extrl case
This commit is contained in:
parent
3791fc69fd
commit
fb2fe4580f
1 changed files with 4 additions and 0 deletions
|
@ -352,9 +352,13 @@ static TCGArg do_constant_folding_2(TCGOpcode op, TCGArg x, TCGArg y)
|
|||
return (int32_t)x;
|
||||
|
||||
case INDEX_op_extu_i32_i64:
|
||||
case INDEX_op_extrl_i64_i32:
|
||||
case INDEX_op_ext32u_i64:
|
||||
return (uint32_t)x;
|
||||
|
||||
case INDEX_op_extrh_i64_i32:
|
||||
return (uint64_t)x >> 32;
|
||||
|
||||
case INDEX_op_muluh_i32:
|
||||
return ((uint64_t)(uint32_t)x * (uint32_t)y) >> 32;
|
||||
case INDEX_op_mulsh_i32:
|
||||
|
|
Loading…
Reference in a new issue