title: x86 TEST instruction not working?
body: <p>I've been banging my head against the wall figuring this out, and this is making no sense to me...</p>
  <h3>Why does this program enter an infinite loop?!</h3>
  <p>I thought you could use <code>test</code> to compare two values for equality, as shown <a href="https://stackoverflow.com/questions/6002079">here</a>... why doesn't it work?</p>
  <pre><code>int main()
  {
      __asm
      {
          mov EAX, 1;
          mov EDX, EAX;
          test EAX, EDX;
  L:      jne L;
      }
  }
  </code></pre>