Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tavianator
· 1y ago · 0 comments
SHL suffers from the same latency issue as SHLX it turns out
Comments
[–]
loeg
1y ago
SAL as well? (And anyway this example seems to be shifting by the low 8 bits of RCX (CL), not the full width register.)
[–]
tavianator
OP
1y ago
SAL and SHL are synonyms, they have the same encoding. SHL only accepts CL as the count register, there's no other form that takes a variable shift count
[–]
loeg
1y ago
Ahh, thanks, I didn't make that connection.
[–]
Bulat_Ziganshin
1y ago
Intel shifts anyway mask out higher bits of CL, this hurts sometimes e.g. when you need to shift by 1..64 bits