From the page for SETcc, I can do a test to see if a (signed) number is negative with:
test %ax, %ax
sets %r10b
And if a number is zero with:
test %ax, %ax
setz %r10b
Is there a conditional to check if something is positive. I was looking for one with ZF=0 and SF=0, if that exists. What's the suggested way to check if a (signed) number is positive?
The only thing I could think of was:
cmp %ax, $0
setg %r10b
Is there a way to do this with test ?