title: what does test %eax, %eax with jns check?
body: <p>I have this assembly code here and I'm looking for an input that will make <code>test</code>/<code>jns</code> not jump.  I am unsure what test with jns is checking?</p>
  <p>I see online saying it's checking the sign bit but the constraint before this step is to have edx to be 10 and eax to be greater than 10, which makes the most significant bit always to be 1 so idk how to proceed... if anyone can help it would be much appreciated.</p>
  <pre><code>  400f55:    0f af c2                 imul   %edx,%eax
    400f58:    85 c0                    test   %eax,%eax
    400f5a:    79 d8                    jns    400f34 &lt;phase_2+0x24&gt;
  </code></pre>