[LLVMbugs] [Bug 1767] New: llc segfaults when compiling optimized sse2 assembly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 4 01:15:21 PST 2007


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

           Summary: llc segfaults when compiling optimized sse2 assembly
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1190)
 --> (http://llvm.org/bugs/attachment.cgi?id=1190)
llvm-gcc -O1 -c testcase-min.i

kernel's crypto/xor.c:

$ llvm-gcc -O1 -c xor.i
crypto/xor.c:155: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.


$ llvm-gcc -emit-llvm -c xor.i -o xor.bc
$ opt -std-compile-opts xor.bc -o xor_o.bc
$ llc xor_o.bc
llc[0xce97ea]
llc[0xce9a56]
/lib/libc.so.6[0x32d1c31710]
llc(llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&)+0x88c)[0xb539ba]
llc(llvm::SimpleRegisterCoalescing::JoinCopy(llvm::MachineInstr*, unsigned int,
unsigned int, bool&)+0xfe7)[0xb55853]
llc(llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector<llvm::SimpleRegisterCoalescing::CopyRec,
std::allocator<llvm::SimpleRegisterCoalescing::CopyRec> >&)+0x2e8)[0xb5620e]
llc(llvm::SimpleRegisterCoalescing::joinIntervals()+0x12b)[0xb5640d]
llc(llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&)+0x2cf)[0xb56bc9]
llc(llvm::MachineFunctionPass::runOnFunction(llvm::Function&)+0x33)[0x773699]
llc(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x10e)[0xc7bf22]
llc(llvm::FunctionPassManagerImpl::run(llvm::Function&)+0x74)[0xc7c148]
llc(llvm::FunctionPassManager::run(llvm::Function&)+0x7f)[0xc7c2a5]
llc(main+0x8ac)[0x7593be]
/lib/libc.so.6(__libc_start_main+0xf4)[0x32d1c1db44]
llc(atan+0x139)[0x757c29]
Segmentation fault

Attaching reduced testcases. Let me know if you need something more.
I am not sure if the optimized bitcode is valid.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list