You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Rsh64x64 x (MOVDconst [c])) && uint64(c) < 64 -> (SRAconst x [c])
(Rsh64x64 x y) -> (SRA x (CSELULT <y.Type> y (Const64 <y.Type> [63]) (CMPconst [64] y)))
(Const64 [val]) -> (MOVDconst [val])
(CMPconst (MOVDconst [x]) [y]) && int64(x)<int64(y) && uint64(x)<uint64(y) -> (FlagLT_ULT)
(CSELULT x _ (FlagGT_ULT)) -> x
(SRA x (MOVDconst [c])) -> (SRAconst x [c&63])
The first rule is implied by the other rules. We don't need the first rule (except that it reduces the number of rewrites required).
We should also probably use MOVDconst instead of Const64 in rule #2.
The text was updated successfully, but these errors were encountered:
The first rule is implied by the other rules. We don't need the first rule (except that it reduces the number of rewrites required).
We should also probably use MOVDconst instead of Const64 in rule #2.
The text was updated successfully, but these errors were encountered: