[LLVMbugs] [Bug 20557] New: bogus cpu parameter crashes llc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 5 16:31:21 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20557

            Bug ID: 20557
           Summary: bogus cpu parameter crashes llc
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using llc built from r214897 on MacOS X, x86-64:

$ cat crash.ll
define <4 x float> @fneg4(<4 x float> %x) #0 {
  %sub = fsub <4 x float> zeroinitializer, %x
  ret <4 x float> %sub
}

$ ./llc -march=aarch64 -mcpu=bogus crash.ll -o -
'bogus' is not a recognized processor for this target (ignoring processor)
'bogus' is not a recognized processor for this target (ignoring processor)
'bogus' is not a recognized processor for this target (ignoring processor)
'bogus' is not a recognized processor for this target (ignoring processor)
    .section    __TEXT,__text,regular,pure_instructions
    .macosx_version_min 13, 3
Assertion failed: (NumElements > 0 && "#Elements of a VectorType must be
greater than 0"), function get, file /Users/llvm/lib/IR/Type.cpp, line 705.
0  llc                      0x000000010cb49d9e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  llc                      0x000000010cb4a0ab
PrintStackTraceSignalHandler(void*) + 27
2  llc                      0x000000010cb4a43c SignalHandler(int) + 412
3  libsystem_platform.dylib 0x00007fff9176c5aa _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 1854487152
5  llc                      0x000000010cb4a0db raise + 27
6  llc                      0x000000010cb4a192 abort + 18
7  llc                      0x000000010cb4a171 __assert_rtn + 129
8  llc                      0x000000010c60f017
llvm::VectorType::get(llvm::Type*, unsigned int) + 119
9  llc                      0x000000010c626cfa
llvm::EVT::getExtendedVectorVT(llvm::LLVMContext&, llvm::EVT, unsigned int) +
58
10 llc                      0x000000010c98a5b1
llvm::EVT::getVectorVT(llvm::LLVMContext&, llvm::EVT, unsigned int) + 113
11 llc                      0x000000010c9a4c75
llvm::TargetLoweringBase::getTypeConversion(llvm::LLVMContext&, llvm::EVT)
const + 565
12 llc                      0x000000010c98a4d2
llvm::TargetLoweringBase::getTypeAction(llvm::LLVMContext&, llvm::EVT) const +
66
13 llc                      0x000000010c8d836d
llvm::DAGTypeLegalizer::getTypeAction(llvm::EVT) const + 77
14 llc                      0x000000010c8d1d66 llvm::DAGTypeLegalizer::run() +
822
15 llc                      0x000000010c8d7b9c
llvm::SelectionDAG::LegalizeTypes() + 60
16 llc                      0x000000010ca2691a
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 3466
17 llc                      0x000000010ca25b7d
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 253
18 llc                      0x000000010ca258d0
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 5296
19 llc                      0x000000010ca231da
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1258
20 llc                      0x000000010b4c9038 (anonymous
namespace)::AArch64DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) +
152
21 llc                      0x000000010c1da46e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110
22 llc                      0x000000010c5d99eb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 427
23 llc                      0x000000010c5d9cf8
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
24 llc                      0x000000010c5da704 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 1412
25 llc                      0x000000010c5d9fae
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 302
26 llc                      0x000000010c5dae81
llvm::legacy::PassManager::run(llvm::Module&) + 33
27 llc                      0x000000010b441052 compileModule(char**,
llvm::LLVMContext&) + 7106
28 llc                      0x000000010b43f422 main + 226
29 libdyld.dylib            0x00007fff909755fd start + 1
Stack dump:
0.    Program arguments: ./llc -march=aarch64 -mcpu=bogus crash.ll -o - 
1.    Running pass 'Function Pass Manager' on module 'crash.ll'.
2.    Running pass 'AArch64 Instruction Selection' on function '@fneg4'
Illegal instruction: 4

-- 
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/20140805/d0ac6b4c/attachment.html>


More information about the llvm-bugs mailing list