Re:Branchless Coding in Go
by jimktrains2 on Tuesday May 04, 2021 @06:39PM
(#27043747)
I thought TEST did a subtract, setting the appropriate flags and discarded the result?
[ Parent
| on HN ]
You're probably thinking of the CMP instruction:
https://www.aldeid.com/wiki/X86-assembly/Instructions/cmp
TEST does a boolean AND test: https://www.aldeid.com/wiki/X86-assembly/Instructions/test