[llvm-bugs] [Bug 52542] New: llc -march=riscv64 -filetype=obj add.bc -o add.o
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 18 00:38:10 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52542
Bug ID: 52542
Summary: llc -march=riscv64 -filetype=obj add.bc -o add.o
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: shliu1461 at 163.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
LLVM ERROR: RV64 target requires an RV64 CPU
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments: llc -march=riscv64 -filetype=obj add.bc -o add.o
1. Running pass 'Function Pass Manager' on module 'add.bc'.
2. Running pass 'Expand Atomic instructions' on function '@add'
#0 0x0000560330602334 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
#1 0x00005603305ffb4e SignalHandler(int) Signals.cpp:0:0
#2 0x00007f47e9eb83c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
#3 0x00007f47e99a518b raise
/build/glibc-eX1tMB/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#4 0x00007f47e9984859 abort /build/glibc-eX1tMB/glibc-2.31/stdlib/abort.c:81:7
#5 0x000056033055a5fa llvm::report_fatal_error(llvm::Twine const&, bool)
(/usr/local/bin/llc+0x14285fa)
#6 0x000056033055a79e (/usr/local/bin/llc+0x142879e)
#7 0x000056032f583b7d (/usr/local/bin/llc+0x451b7d)
#8 0x000056032f57aaf2
llvm::RISCVSubtarget::initializeSubtargetDependencies(llvm::Triple const&,
llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef)
(/usr/local/bin/llc+0x448af2)
#9 0x000056032f57b66b llvm::RISCVSubtarget::RISCVSubtarget(llvm::Triple
const&, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef,
llvm::TargetMachine const&) (/usr/local/bin/llc+0x44966b)
#10 0x000056032f50a598
llvm::RISCVTargetMachine::getSubtargetImpl(llvm::Function const&) const
(/usr/local/bin/llc+0x3d8598)
#11 0x000056032f866bd4 (anonymous
namespace)::AtomicExpand::runOnFunction(llvm::Function&)
AtomicExpandPass.cpp:0:0
#12 0x000056032fe06bc0 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/bin/llc+0xcd4bc0)
#13 0x000056032fe06d39 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/bin/llc+0xcd4d39)
#14 0x000056032fe09070 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/bin/llc+0xcd7070)
#15 0x000056032f49a1ef main (/usr/local/bin/llc+0x3681ef)
#16 0x00007f47e99860b3 __libc_start_main
/build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3
#17 0x000056032f4e69ce _start (/usr/local/bin/llc+0x3b49ce)
Aborted (core dumped)
--
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/20211118/45b29ee9/attachment.html>
More information about the llvm-bugs
mailing list