In the AT&T assembly, the equivalent code would look like this:
cmp %ebx, %eax
cmovl %ebx, %eax
which would copy the value %ebxin %eaxif the value contained in %eaxwas greater than the value contained in %ebxduring the call cmp.
With your examples, the result will be that the conditional move will not copy the value from %ebxto %eax, since there is 0x02clearly more than 0x01.
source
share