Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

llc -march=riscv64 -filetype=obj add.bc -o add.o #51509

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR52542
Status NEW
Importance P enhancement
Reported by 刘博 (shliu1461@163.com)
Reported on 2021-11-18 00:38:10 -0800
Last modified on 2021-11-18 08:46:32 -0800
Version unspecified
Hardware PC Linux
CC craig.topper@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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)
Quuxplusone commented 3 years ago

What is in add.bc?