[llvm-bugs] [Bug 48636] New: Instruction selection error from wasm64 backend

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 30 12:06:00 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48636

            Bug ID: 48636
           Summary: Instruction selection error from wasm64 backend
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: me at gus.host
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 24329
  --> https://bugs.llvm.org/attachment.cgi?id=24329&action=edit
absvdi2-ba53ee.sh

Backtrace:

fatal error: error in backend: Cannot select: 0x560e869d5670: i64 =
WebAssemblyISD::Wrapper TargetGlobalAddress:i64<[91 x i8]* @.str> 0
  0x560e869d57a8: i64 = TargetGlobalAddress<[91 x i8]* @.str> 0
In function: __absvdi2
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: /usr/bin/clang -O3 -ffunction-sections
-fdata-sections -fPIC --target=wasm64-unknown-unknown -ffunction-sections
-fdata-sections -fPIC --target=wasm64-unknown-unknown -fno-builtin
-fvisibility=hidden -ffreestanding -DVISIBILITY_HIDDEN -c -o
/home/snek/Desktop/misc/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1-std/wasm64-unknown-unknown/release/build/compiler_builtins-4ef4d7629614305a/out/absvdi2.o
/home/snek/Desktop/misc/rust-lang/rust/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/snek/Desktop/misc/rust-lang/rust/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c'.
4.      Running pass 'WebAssembly Instruction Selection' on function
'@__absvdi2'
 #0 0x00007f6bc105115b llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM-11.so+0xa7615b)
 #1 0x00007f6bc104ee84 llvm::sys::RunSignalHandlers()
(/usr/bin/../lib/libLLVM-11.so+0xa73e84)
 #2 0x00007f6bc0f61938 llvm::CrashRecoveryContext::HandleExit(int)
(/usr/bin/../lib/libLLVM-11.so+0x986938)
 #3 0x00007f6bc1047859 llvm::sys::Process::Exit(int)
(/usr/bin/../lib/libLLVM-11.so+0xa6c859)
 #4 0x0000560e85f6dc38 (/usr/bin/clang+0x11c38)
 #5 0x00007f6bc0f74eda llvm::report_fatal_error(llvm::Twine const&, bool)
(/usr/bin/../lib/libLLVM-11.so+0x999eda)
 #6 0x00007f6bc0f7505f (/usr/bin/../lib/libLLVM-11.so+0x99a05f)
 #7 0x00007f6bc18be550 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*)
(/usr/bin/../lib/libLLVM-11.so+0x12e3550)
 #8 0x00007f6bc18bf352 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*,
unsigned char const*, unsigned int) (/usr/bin/../lib/libLLVM-11.so+0x12e4352)
 #9 0x00007f6bc3a9c7bc (/usr/bin/../lib/libLLVM-11.so+0x34c17bc)
#10 0x00007f6bc18bcf5f llvm::SelectionDAGISel::DoInstructionSelection()
(/usr/bin/../lib/libLLVM-11.so+0x12e1f5f)
#11 0x00007f6bc18c5b26 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/bin/../lib/libLLVM-11.so+0x12eab26)
#12 0x00007f6bc18c989d
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/bin/../lib/libLLVM-11.so+0x12ee89d)
#13 0x00007f6bc18cc2bd (/usr/bin/../lib/libLLVM-11.so+0x12f12bd)
#14 0x00007f6bc140a3b6
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/bin/../lib/libLLVM-11.so+0xe2f3b6)
#15 0x00007f6bc119eb70 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/bin/../lib/libLLVM-11.so+0xbc3b70)
#16 0x00007f6bc11a014d llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/bin/../lib/libLLVM-11.so+0xbc514d)
#17 0x00007f6bc119dc30 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/../lib/libLLVM-11.so+0xbc2c30)
#18 0x00007f6bc787c37d 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> >)
(/usr/bin/../lib/libclang-cpp.so.11+0x184237d)
#19 0x00007f6bc7be7543 (/usr/bin/../lib/libclang-cpp.so.11+0x1bad543)
#20 0x00007f6bc6998ed9 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x95eed9)
#21 0x00007f6bc831d539 clang::FrontendAction::Execute()
(/usr/bin/../lib/libclang-cpp.so.11+0x22e3539)
#22 0x00007f6bc82ccf7e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/../lib/libclang-cpp.so.11+0x2292f7e)
#23 0x00007f6bc839ae7d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/../lib/libclang-cpp.so.11+0x2360e7d)
#24 0x0000560e85f6e852 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang+0x12852)
#25 0x0000560e85f6bdfc (/usr/bin/clang+0xfdfc)
#26 0x00007f6bc7f98575 (/usr/bin/../lib/libclang-cpp.so.11+0x1f5e575)
#27 0x00007f6bc0f617c3
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/bin/../lib/libLLVM-11.so+0x9867c3)
#28 0x00007f6bc7f9921e (/usr/bin/../lib/libclang-cpp.so.11+0x1f5f21e)
#29 0x00007f6bc7f6ea88
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/usr/bin/../lib/libclang-cpp.so.11+0x1f34a88)
#30 0x00007f6bc7f6f377
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/bin/../lib/libclang-cpp.so.11+0x1f35377)
#31 0x00007f6bc7f7ae5c
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/bin/../lib/libclang-cpp.so.11+0x1f40e5c)
#32 0x0000560e85f69c02 main (/usr/bin/clang+0xdc02)
#33 0x00007f6bc025d152 __libc_start_main (/usr/bin/../lib/libc.so.6+0x28152)
#34 0x0000560e85f6b76e _start (/usr/bin/clang+0xf76e)
clang-11: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 11.0.0
Target: wasm64-unknown-unknown
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/absvdi2-ba53ee.c
clang-11: note: diagnostic msg: /tmp/absvdi2-ba53ee.sh
clang-11: note: diagnostic msg: 

********************

-- 
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/20201230/016b4d1a/attachment.html>


More information about the llvm-bugs mailing list