<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Mips target throws unclear assertion instead of diagnostic on misuse."
href="https://llvm.org/bugs/show_bug.cgi?id=26696">26696</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Mips target throws unclear assertion instead of diagnostic on misuse.
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>OmnipotentEntity@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>If you fail to specify a target triple using clang, then try to use llc to
compile to assembly you get the following error
$ clang -O3 -emit-llvm P1-1.c -c -o P1-1.bc
$ /usr/local/opt/llvm/bin/llc P1-1.bc -march=mipsel -relocation-model=static -o
P1-1.s
'core2' is not a recognized processor for this target (ignoring processor)
'+ssse3' is not a recognized feature for this target (ignoring feature)
'+cx16' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+sse3' is not a recognized feature for this target (ignoring feature)
'core2' is not a recognized processor for this target (ignoring processor)
'core2' is not a recognized processor for this target (ignoring processor)
'+ssse3' is not a recognized feature for this target (ignoring feature)
'+cx16' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+sse3' is not a recognized feature for this target (ignoring feature)
'core2' is not a recognized processor for this target (ignoring processor)
'core2' is not a recognized processor for this target (ignoring processor)
Assertion failed: (ABI.IsKnown()), function MipsSubtarget, file
/tmp/llvm20151214-69554-hagc7s/llvm-3.6.2.src/lib/Target/Mips/MipsSubtarget.cpp,
line 139.
0 llc 0x000000010244d757
llvm::sys::PrintStackTrace(__sFILE*) + 57
1 llc 0x000000010244dcad SignalHandler(int) + 217
2 libsystem_platform.dylib 0x00007fff94c6beaa _sigtramp + 26
3 libsystem_platform.dylib 0x00007fff6eedf945 _sigtramp + 3660004021
4 llc 0x000000010244db3c abort + 22
5 llc 0x000000010244db26 abort + 0
6 llc 0x0000000101c6d057
llvm::MipsSubtarget::MipsSubtarget(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool,
llvm::MipsTargetMachine const&) + 1497
7 llc 0x0000000101c6e77f
llvm::MipsTargetMachine::getSubtargetImpl(llvm::Function const&) const + 819
8 llc 0x0000000101c6e80c
llvm::MipsTargetMachine::resetSubtarget(llvm::MachineFunction*) + 78
9 llc 0x0000000101c4ef50
llvm::MipsModuleDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 78
10 llc 0x0000000102044668
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 48
11 llc 0x00000001021df0ab
llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
12 llc 0x00000001021df243
llvm::FPPassManager::runOnModule(llvm::Module&) + 41
13 llc 0x00000001021df5a2
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 650
14 llc 0x00000001019b1148 main + 5284
15 libdyld.dylib 0x00007fff981e45ad start + 1
Stack dump:
0. Program arguments: /usr/local/opt/llvm/bin/llc P1-1.bc -march=mipsel
-relocation-model=static -o P1-1.s
1. Running pass 'Function Pass Manager' on module 'P1-1.bc'.
2. Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function
'@dumpPile'
[1] 3543 illegal hardware instruction /usr/local/opt/llvm/bin/llc P1-1.bc
-march=mipsel -relocation-model=static -o</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>