<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:raphael_bost@alumni.brown.edu" title="Raphael Bost <raphael_bost@alumni.brown.edu>"> <span class="fn">Raphael Bost</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [inline asm, AVX] Issue with the SSE register allocation in inline assembly"
   href="https://bugs.llvm.org/show_bug.cgi?id=37402">bug 37402</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [inline asm, AVX] Issue with the SSE register allocation in inline assembly"
   href="https://bugs.llvm.org/show_bug.cgi?id=37402#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [inline asm, AVX] Issue with the SSE register allocation in inline assembly"
   href="https://bugs.llvm.org/show_bug.cgi?id=37402">bug 37402</a>
              from <span class="vcard"><a class="email" href="mailto:raphael_bost@alumni.brown.edu" title="Raphael Bost <raphael_bost@alumni.brown.edu>"> <span class="fn">Raphael Bost</span></a>
</span></b>
        <pre>Well, I had taken a look at this page
<a href="https://gcc.gnu.org/onlinedocs/gcc/Modifiers.html">https://gcc.gnu.org/onlinedocs/gcc/Modifiers.html</a>, and I understood the
paragraph about the '&' modifier completely differently (and I was not the only
one around me :). But now, it totally makes sense.


For the record, the part of the doc Craig mentioned is there:
<a href="https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#OutputOperands">https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#OutputOperands</a>

Thanks Craig, 
And sorry for the false alarm.

(In reply to Craig Topper from <a href="show_bug.cgi?id=37402#c4">comment #4</a>)
<span class="quote">> I'll admit I'm not great with inline assembly rules, but don't you need to
> put an '&' in the output constraint for vc in Implementation 1.

> From gcc docs

> "Use the ‘&’ constraint modifier (see Modifiers) on all output operands that
> must not overlap an input. Otherwise, GCC may allocate the output operand in
> the same register as an unrelated input operand, on the assumption that the
> assembler code consumes its inputs before producing outputs. This assumption
> may be false if the assembler code actually consists of more than one
> instruction."</span ></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>