<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - error in backend: Cannot emit physreg copy instruction, after _mm_hadd_pd"
   href="https://bugs.llvm.org/show_bug.cgi?id=44111">44111</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error in backend: Cannot emit physreg copy instruction, after _mm_hadd_pd
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>agner@agner.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22853" name="attach_22853" title="Complete code and diagnostics">attachment 22853</a> <a href="attachment.cgi?id=22853&action=edit" title="Complete code and diagnostics">[details]</a></span>
Complete code and diagnostics

The attached program containing the intrinsic function for horizontal addition,
_mm_hadd_pd, causes errors in Clang 9.0 (Windows/msys2 version).

Three situations are tested:
1: No bugs with -O1.
2: Wrong result with -O2 (or -O3).
3: The compiler crashes with -O2 when additional printf statements are added to
trace the error.

Disassembly of (2) shows that _mm_hadd_pd is implemented correctly, but the
value is somehow lost in the subsequent code. Both errors disappear when
_mm_hadd_pd is replaced by alternatives.</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>