<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - cvttpd2dq is not generated for <2 x double> to <2 x i32> casts"
   href="https://llvm.org/bugs/show_bug.cgi?id=28461">28461</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cvttpd2dq is not generated for <2 x double> to <2 x i32> casts
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mkuper@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For:

define <2 x i32> @foo(<2 x double> %arg) {
  %ret = fptosi <2 x double> %arg to <2 x i32>
  ret <2 x i32> %ret
}

We produce, with llc -matr=+sse4.2:
    cvttsd2si    %xmm0, %rax
    movd    %rax, %xmm1
    shufpd    $1, %xmm0, %xmm0        # xmm0 = xmm0[1,0]
    cvttsd2si    %xmm0, %rax
    movd    %rax, %xmm0
    punpcklqdq    %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
    movdqa    %xmm1, %xmm0
    retq</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>