3 ms·
That’s okay — AMD’s manual, like Intel’s manual, uses Intel syntax. (I personally find cmp to be really annoying in AT&T syntax —- the AT&T syntax cmp; jge is
by amluto 4y ago
That’s okay — AMD’s manual, like Intel’s manual, uses Intel syntax.
(I personally find cmp to be really annoying in AT&T syntax —- the AT&T syntax cmp; jge is backwards, whereas the exact same sequence in Intel syntax makes sense. (jge is “jump if greater or equal”. But which values are compared in which order? [0]). AVX-512 in AT&T syntax is extra bizarre, too, if for no other reason than that it doesn’t match the documentation.
[0] For extra mental gymnastics, CMP with two register arguments can be encoded in two different ways: the way where the first operand could have been, but wasn’t, in memory, and the way where the second operand could have been, but wasn’t, in memory. Unlike SUB, CMP doesn’t really have a destination, but AT&T still reverses it for, ahem, consistency.