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
For the expression (x >> amt) != 0, for values of amt between 8 and 31, LLVM emits a cmp against an immediate instead of a shift right and comparison. The compare against immediate instruction takes 7 bytes to encode; the shift right instruction takes 4 bytes
src:cmprdi,0x7fffffff ; 48 81 ff ff ff ff 7f setae al ; 0f 97 c0ret ; c3tgt:shrrdi,0x1f ; 48 c1 ef 1f setne al ; 0f 95 c0ret ; c3