title: Regarding cmp / jg, jle, etc in AT&T syntax assembly
body: <p>So every single resource online tells me that something like this:</p>
  
  <pre><code>cmp %eax, %ebx
  jg &lt; something &gt;
  </code></pre>
  
  <p>would jump to &lt; something > if eax was greater than ebx. But I have another piece of code that seems to contradict this:</p>
  
  <pre><code>cmp $0x2, %eax
  jg  &lt; something&gt;
  </code></pre>
  
  <p>as it jumps to &lt; something > when eax has the value 3.</p>
  
  <p>Am I missing something, or does cmp a, b - jg execute if b > a and not a>b? And does this apply to other jump statements as well?</p>