[llvm-bugs] [Bug 51391] New: Could not match memory address. Inline asm failure!
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 6 11:11:23 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51391
Bug ID: 51391
Summary: Could not match memory address. Inline asm failure!
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: M68k
Assignee: unassignedbugs at nondot.org
Reporter: xtkoba at gmail.com
CC: glaubitz at physik.fu-berlin.de,
llvm-bugs at lists.llvm.org, minyihh at uci.edu
Created attachment 25114
--> https://bugs.llvm.org/attachment.cgi?id=25114&action=edit
Preprocessed source and associated run script
$ cat asm.c
void foo(void *p)
{
__asm__("" : : "m"(p));
}
$ /usr/lib/llvm/13/bin/clang --target=m68k-unknown-linux-musl asm.c -c
fatal error: error in backend: Could not match memory address. Inline asm
failure!
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/lib/llvm/13/bin/clang
--target=m68k-unknown-linux-musl asm.c -c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'asm.c'.
4. Running pass 'M68k DAG->DAG Pattern Instruction Selection' on function
'@foo'
#0 0x00007fd63b75fb53 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x21b8b53)
#1 0x00007fd63b75db60 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x21b6b60)
#2 0x00007fd63b6972ea
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x20f02ea)
#3 0x00007fd63b69728b
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x20f028b)
#4 0x00007fd63b75a1c7 llvm::sys::Process::Exit(int, bool)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x21b31c7)
#5 0x0000000000216b59 (/usr/lib/llvm/13/bin/clang+0x216b59)
#6 0x00007fd63b6a4e01 llvm::report_fatal_error(llvm::Twine const&, bool)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x20fde01)
#7 0x00007fd63b6a4cd6
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x20fdcd6)
#8 0x00007fd63bf473e4
llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands(std::vector<llvm::SDValue,
std::allocator<llvm::SDValue> >&, llvm::SDLoc const&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x29a03e4)
#9 0x00007fd63bf47a35 llvm::SelectionDAGISel::Select_INLINEASM(llvm::SDNode*)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x29a0a35)
#10 0x00007fd63dbbced7
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x4615ed7)
#11 0x00007fd63bf44b2f llvm::SelectionDAGISel::DoInstructionSelection()
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x299db2f)
#12 0x00007fd63bf44086 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x299d086)
#13 0x00007fd63bf4318d
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x299c18d)
#14 0x00007fd63bf40da8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x2999da8)
#15 0x00007fd63bada3bd
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x25333bd)
#16 0x00007fd63b8a49e5 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x22fd9e5)
#17 0x00007fd63b8aad63 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x2303d63)
#18 0x00007fd63b8a5071 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x22fe071)
#19 0x00007fd6404624b6
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x22fe4b6)
#20 0x00007fd64045e025 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x22fa025)
#21 0x00007fd64073e4d7
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x25da4d7)
#22 0x00007fd63f6a41f3 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x15401f3)
#23 0x00007fd640ec68f7 clang::FrontendAction::Execute()
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x2d628f7)
#24 0x00007fd640e3dd76
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x2cd9d76)
#25 0x00007fd640f3807f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x2dd407f)
#26 0x0000000000216519 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm/13/bin/clang+0x216519)
#27 0x0000000000214239 (/usr/lib/llvm/13/bin/clang+0x214239)
#28 0x00007fd640b12192
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x29ae192)
#29 0x00007fd63b69725e
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/lib/llvm/13/bin/../lib64/libLLVM-13git.so+0x20f025e)
#30 0x00007fd640b119b7
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x29ad9b7)
#31 0x00007fd640ae25c1
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x297e5c1)
#32 0x00007fd640ae2947
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x297e947)
#33 0x00007fd640af8cbd
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13git+0x2994cbd)
#34 0x00000000002137f5 main (/usr/lib/llvm/13/bin/clang+0x2137f5)
#35 0x00007fd6390a07fd __libc_start_main
/var/tmp/portage/sys-libs/glibc-2.33-r4/work/glibc-2.33/csu/../csu/libc-start.c:332:16
#36 0x0000000000210e4a _start (/usr/lib/llvm/13/bin/clang+0x210e4a)
clang-13: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 13.0.0
Target: m68k-unknown-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
clang-13: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/asm-9c6d6b.c
clang-13: note: diagnostic msg: /tmp/asm-9c6d6b.sh
clang-13: 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/20210806/bd0aa1c0/attachment.html>
More information about the llvm-bugs
mailing list