optimize: Add missing extrh/extrl case

This commit is contained in:
Lioncash 2018-02-11 02:09:56 -05:00
parent 3791fc69fd
commit fb2fe4580f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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: