[llvm-bugs] [Bug 26696] New: Mips target throws unclear assertion instead of diagnostic on misuse.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 22 08:49:50 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26696
Bug ID: 26696
Summary: Mips target throws unclear assertion instead of
diagnostic on misuse.
Product: tools
Version: 3.6
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: llc
Assignee: unassignedbugs at nondot.org
Reporter: OmnipotentEntity at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
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
--
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/20160222/5ecd4f14/attachment.html>
More information about the llvm-bugs
mailing list