<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llc -march=riscv64 -filetype=obj add.bc -o add.o"
href="https://bugs.llvm.org/show_bug.cgi?id=52542">52542</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llc -march=riscv64 -filetype=obj add.bc -o add.o
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>shliu1461@163.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>LLVM ERROR: RV64 target requires an RV64 CPU
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>