[llvm-bugs] [Bug 47109] New: UNREACHABLE executed at llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp:270!
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 11 01:50:43 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47109
Bug ID: 47109
Summary: UNREACHABLE executed at
llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.
cpp:270!
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: raul at tambre.ee
CC: arnaud.degrandmaison at arm.com,
llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
Ties.Stuij at arm.com
This occurs when compiling libunwind.cpp for AArch64. Seems to be a recent
regression introduced after the Clang 12 branch point.
clang++ unwind.cpp --target=aarch64-linux-gnu
unwind.cpp:
void a()
{
register long b __asm("x17");
asm("" : "+r"(b));
}
Stacktrace:
Register class not supported
UNREACHABLE executed at
/opt/llvm/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp:270!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/llvm/build/bin/clang-12 -cc1 -triple
aarch64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations
-disable-free -main-file-name unwind.cpp -mrelocation-model static
-mframe-pointer=non-leaf -fmath-errno -fno-rounding-math -mconstructor-aliases
-target-cpu generic -target-feature +neon -target-abi aapcs
-fallow-half-arguments-and-returns -fno-split-dwarf-inlining
-debugger-tuning=gdb -resource-dir /opt/llvm/build/lib/clang/12.0.0
-internal-isystem /usr/local/include -internal-isystem
/opt/llvm/build/lib/clang/12.0.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdeprecated-macro
-fdebug-compilation-dir /opt/llvm/dev -ferror-limit 19 -fno-signed-char
-fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics
-faddrsig -o /tmp/unwind-31afd1.o -x c++ unwind.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'unwind.cpp'.
4. Running pass 'RegBankSelect' on function '@_Z1av'
#0 0x0000000005f4f3c7 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/opt/llvm/llvm/lib/Support/Unix/Signals.inc:563:11
#1 0x0000000005f4f569 PrintStackTraceSignalHandler(void*)
/opt/llvm/llvm/lib/Support/Unix/Signals.inc:624:1
#2 0x0000000005f4dd7b llvm::sys::RunSignalHandlers()
/opt/llvm/llvm/lib/Support/Signals.cpp:67:5
#3 0x0000000005f4fc8d SignalHandler(int)
/opt/llvm/llvm/lib/Support/Unix/Signals.inc:405:1
#4 0x00007fe2e81cb140 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
#5 0x00007fe2e7ca3db1 raise ./signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#6 0x00007fe2e7c8d537 abort ./stdlib/abort.c:81:7
#7 0x0000000005e87524 /opt/llvm/llvm/lib/Support/ErrorHandling.cpp:210:3
#8 0x00000000041889fb
llvm::AArch64RegisterBankInfo::getRegBankFromRegClass(llvm::TargetRegisterClass
const&, llvm::LLT) const
/opt/llvm/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp:272:1
#9 0x0000000007702117 llvm::RegisterBankInfo::getRegBank(llvm::Register,
llvm::MachineRegisterInfo const&, llvm::TargetRegisterInfo const&) const
/opt/llvm/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp:88:5
#10 0x0000000004189bcd
llvm::AArch64RegisterBankInfo::getInstrMapping(llvm::MachineInstr const&) const
/opt/llvm/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp:582:27
#11 0x00000000076fa7d4 llvm::RegBankSelect::assignInstr(llvm::MachineInstr&)
/opt/llvm/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp:630:25
#12 0x00000000076fadc7
llvm::RegBankSelect::runOnMachineFunction(llvm::MachineFunction&)
/opt/llvm/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp:705:11
#13 0x0000000004e51d77
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/opt/llvm/llvm/lib/CodeGen/MachineFunctionPass.cpp:73:8
#14 0x000000000551f542 llvm::FPPassManager::runOnFunction(llvm::Function&)
/opt/llvm/llvm/lib/IR/LegacyPassManager.cpp:1587:23
#15 0x00000000055247a5 llvm::FPPassManager::runOnModule(llvm::Module&)
/opt/llvm/llvm/lib/IR/LegacyPassManager.cpp:1633:16
#16 0x000000000551fee6 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/opt/llvm/llvm/lib/IR/LegacyPassManager.cpp:1702:23
#17 0x000000000551fa16 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/opt/llvm/llvm/lib/IR/LegacyPassManager.cpp:614:16
#18 0x0000000005524aa1 llvm::legacy::PassManager::run(llvm::Module&)
/opt/llvm/llvm/lib/IR/LegacyPassManager.cpp:1829:3
#19 0x000000000632023a (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
/opt/llvm/clang/lib/CodeGen/BackendUtil.cpp:969:3
#20 0x000000000631c333 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
/opt/llvm/clang/lib/CodeGen/BackendUtil.cpp:1685:5
#21 0x000000000712c135
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/opt/llvm/clang/lib/CodeGen/CodeGenAction.cpp:335:7
#22 0x0000000007ea1348 clang::ParseAST(clang::Sema&, bool, bool)
/opt/llvm/clang/lib/Parse/ParseAST.cpp:178:12
#23 0x0000000006f5ad1d clang::ASTFrontendAction::ExecuteAction()
/opt/llvm/clang/lib/Frontend/FrontendAction.cpp:1059:1
#24 0x00000000071285bf clang::CodeGenAction::ExecuteAction()
/opt/llvm/clang/lib/CodeGen/CodeGenAction.cpp:1183:1
#25 0x0000000006f5a6e8 clang::FrontendAction::Execute()
/opt/llvm/clang/lib/Frontend/FrontendAction.cpp:954:7
#26 0x0000000006e882dc
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/opt/llvm/clang/lib/Frontend/CompilerInstance.cpp:984:23
#27 0x000000000711714c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/opt/llvm/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:278:8
#28 0x0000000003f8d8ac cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) /opt/llvm/clang/tools/driver/cc1_main.cpp:240:13
#29 0x0000000003f814ba ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
/opt/llvm/clang/tools/driver/driver.cpp:330:5
#30 0x0000000003f806dd main /opt/llvm/clang/tools/driver/driver.cpp:407:5
#31 0x00007fe2e7c8ecca __libc_start_main ./csu/../csu/libc-start.c:308:16
#32 0x0000000003f7fe8a _start (/opt/llvm/build/bin/clang-12+0x3f7fe8a)
--
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/20200811/7321a406/attachment.html>
More information about the llvm-bugs
mailing list