<html>
    <head>
      <base href="http://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 --- - bogus cpu parameter crashes llc"
   href="http://llvm.org/bugs/show_bug.cgi?id=20557">20557</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bogus cpu parameter crashes llc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</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>