<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 --- - [ARM] Extra vmov converting <1 x i64> to i64"
   href="https://llvm.org/bugs/show_bug.cgi?id=31327">31327</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ARM] Extra vmov converting <1 x i64> to i64
          </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>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>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>efriedma@codeaurora.org
          </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>Testcase:

define i64 @func1(<2 x i64> %x) {
entry:
  %shuffle.i = shufflevector <2 x i64> %x, <2 x i64> undef, <1 x i32>
zeroinitializer
  %shuffle.i6 = shufflevector <2 x i64> %x, <2 x i64> undef, <1 x i32> <i32 1>
  %add.i = add <1 x i64> %shuffle.i6, %shuffle.i
  %vget_lane = extractelement <1 x i64> %add.i, i32 0
  ret i64 %vget_lane
}

Current output from llc -mtriple=thumbv7-arm-linux-gnueabi:

        vmov    d17, r2, r3
        vmov    d16, r0, r1
        vadd.i64        d16, d17, d16
        vmov.32 r0, d16[0]
        vmov.32 r1, d16[1]
        bx      lr

The two vmov.32 instructions could be reduced to one "vmov r0, r1, d16".</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>