[LLVMbugs] [Bug 19313] New: [ARM64] ARM64InstrInfo.cpp:1343: Assertion `0 && "unimplemented reg-to-reg copy"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 2 15:14:05 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19313

            Bug ID: 19313
           Summary: [ARM64] ARM64InstrInfo.cpp:1343: Assertion `0 &&
                    "unimplemented reg-to-reg copy"' failed
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: apazos at codeaurora.org, grosbach at apple.com,
                    llvmbugs at cs.uiuc.edu, t.p.northover at gmail.com
    Classification: Unclassified

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'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140402/f0ed4b2d/attachment.html>


More information about the llvm-bugs mailing list