[LLVMbugs] [Bug 10059] New: UNREACHABLE executed at X86InstrInfo.cpp:2020

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 1 06:02:24 PDT 2011


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

           Summary: UNREACHABLE executed at X86InstrInfo.cpp:2020
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6670)
 --> (http://llvm.org/bugs/attachment.cgi?id=6670)
reduced test case

Trying to compile the attached program with "clang++ -c -O2 fail.ii" on Linux
causes the stack trace below.

It seems this started with LLVM r132358. This breaks the Chromium build.

Unknown regclass
UNREACHABLE executed at X86InstrInfo.cpp:2020!
0  clang           0x000000000190533f
1  clang           0x00000000019075b2
2  libpthread.so.0 0x00007f71281c38f0
3  libc.so.6       0x00007f71274b2a75 gsignal + 53
4  libc.so.6       0x00007f71274b65c0 abort + 384
5  clang           0x00000000018efc92 llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 354
6  clang           0x0000000001248227
7  clang           0x000000000124b047
llvm::X86InstrInfo::storeRegToStackSlot(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, bool, int,
llvm::TargetRegisterClass const*, llvm::TargetRegisterInfo const*) const + 151
8  clang           0x000000000154fec0
9  clang           0x0000000001550721
10 clang           0x0000000001554352
11 clang           0x00000000014a39de
12 clang           0x000000000159cf22 llvm::RegAllocBase::allocatePhysRegs() +
594
13 clang           0x000000000149b554
14 clang           0x000000000184ef0b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
15 clang           0x000000000184f00b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
16 clang           0x00000000018505e7
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
17 clang           0x000000000185077b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
18 clang           0x00000000007c1f3f
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 1807
19 clang           0x00000000007bf51b
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251
20 clang           0x00000000008f17ed clang::ParseAST(clang::Sema&, bool) + 413
21 clang           0x00000000007be7e4 clang::CodeGenAction::ExecuteAction() +
68
22 clang           0x00000000006a7233
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371
23 clang           0x00000000006816c4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268
24 clang           0x0000000000677d48 cc1_main(char const**, char const**, char
const*, void*) + 760
25 clang           0x0000000000680580 main + 7040
26 libc.so.6       0x00007f712749dc4d __libc_start_main + 253
27 clang           0x0000000000676179
Stack dump:
0.    Program arguments: /usr/local/google/work/llvm/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
fail.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file fail.o -resource-dir
/usr/local/google/work/llvm/Release+Asserts/bin/../lib/clang/3.0 -O2
-fdeprecated-macro -ferror-limit 19 -fmessage-length 102 -fcxx-exceptions
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
fail.o -x c++-cpp-output fail.ii 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'fail.ii'.
4.    Running pass 'Greedy Register Allocator' on function
'@_Z18softlight_modeprocjj'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)

-- 
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