<html>
    <head>
      <base href="http://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 --- - [ARM64] ARM64InstrInfo.cpp:1343: Assertion `0 && "unimplemented reg-to-reg copy"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=19313">19313</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ARM64] ARM64InstrInfo.cpp:1343: Assertion `0 && "unimplemented reg-to-reg copy"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mcrosier@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>apazos@codeaurora.org, grosbach@apple.com, llvmbugs@cs.uiuc.edu, t.p.northover@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Test case:
---------------------------------------------------------
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "arm64--linux-gnu"

@.str2 = external unnamed_addr constant [51 x i8], align 1

define void @t() {
entry:
  %conv = fptosi fp128 undef to i32
  tail call void (i8*, ...)* @f(i8* getelementptr inbounds ([51 x i8]* @.str2,
i64 0, i64 0), i32 %conv, i32 24)
  ret void
}

declare void @f(i8*, ...)
---------------------------------------------------------

Reproduce with:
llc -O3 test.ll


Complete failure backtrace:
llc: llvm/lib/Target/ARM64/ARM64InstrInfo.cpp:1343: virtual void
llvm::ARM64InstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::iterator, llvm::DebugLoc, unsigned int, unsigned int,
bool) const: Assertion `0 && "unimplemented reg-to-reg copy"' failed.
0  llc             0x0000000000ced7f2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  llc             0x0000000000ced414
2  libpthread.so.0 0x00007f7fded9c8f0
3  libc.so.6       0x00007f7fde07ab25 gsignal + 53
4  libc.so.6       0x00007f7fde07e670 abort + 384
5  libc.so.6       0x00007f7fde0739f1 __assert_fail + 241
6  llc             0x00000000006fa168
llvm::ARM64InstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, llvm::DebugLoc, unsigned int,
unsigned int, bool) const + 5352
7  llc             0x00000000007b552b
8  llc             0x0000000000a775ff
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
9  llc             0x0000000000a77acb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
10 llc             0x0000000000a77e0d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
11 llc             0x0000000000501002
12 llc             0x0000000000502310 main + 272
13 libc.so.6       0x00007f7fde065c4d __libc_start_main + 253
14 llc             0x00000000004f9ba9
Stack dump:
0.      Program arguments: llc -O3 test.ll 
1.      Running pass 'Function Pass Manager' on module 'test.ll'.
2.      Running pass 'Post-RA pseudo instruction expansion pass' on function
'@t'</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>