<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 - Assertion `EVT(Ins[i].VT) == InVals[i].getValueType() && "LowerFormalArguments emitted a value with the wrong type!"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=32089">32089</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `EVT(Ins[i].VT) == InVals[i].getValueType() && "LowerFormalArguments emitted a value with the wrong type!"' failed.
          </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>mikael.holmen@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18032" name="attach_18032" title="reproducer">attachment 18032</a> <a href="attachment.cgi?id=18032&action=edit" title="reproducer">[details]</a></span>
reproducer

build-all/bin/llc -O0 -march=hexagon -debug hex-i1-crash.ll

on

define void @g(i1 %cond) {
  ret void
}

gives

Args: build-all/bin/llc -O0 -march=hexagon -debug hex-i1-crash.ll 

Features:
CPU:hexagonv60

[SafeStack] Function: g
[SafeStack]     safestack is not requested for this function



=== g
llc: ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8167: void
llvm::SelectionDAGISel::LowerArguments(const llvm::Function &): Assertion
`EVT(Ins[i].VT) == InVals[i].getValueType() && "LowerFormalArguments emitted a
value with the wrong type!"' failed.
#0 0x0000000001b38a64 PrintStackTraceSignalHandler(void*)
(build-all/bin/llc+0x1b38a64)
#1 0x0000000001b391d6 SignalHandler(int) (build-all/bin/llc+0x1b391d6)
#2 0x00007f46dfb15330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f46de708c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f46de70c028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f46de701bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f46de701ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000019a7599 llvm::SelectionDAGISel::LowerArguments(llvm::Function
const&) (build-all/bin/llc+0x19a7599)
#8 0x00000000019f83f6
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(build-all/bin/llc+0x19f83f6)
#9 0x00000000019f68fa
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(build-all/bin/llc+0x19f68fa)
#10 0x0000000000b6d911 (anonymous
namespace)::HexagonDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(build-all/bin/llc+0xb6d911)
#11 0x00000000013a6b32
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(build-all/bin/llc+0x13a6b32)
#12 0x0000000001635de8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(build-all/bin/llc+0x1635de8)
#13 0x0000000001636028 llvm::FPPassManager::runOnModule(llvm::Module&)
(build-all/bin/llc+0x1636028)
#14 0x0000000001636505 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(build-all/bin/llc+0x1636505)
#15 0x000000000068a679 compileModule(char**, llvm::LLVMContext&)
(build-all/bin/llc+0x68a679)
#16 0x00000000006876eb main (build-all/bin/llc+0x6876eb)
#17 0x00007f46de6f3f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#18 0x000000000068590b _start (build-all/bin/llc+0x68590b)
Stack dump:
0.      Program arguments: build-all/bin/llc -O0 -march=hexagon -debug
hex-i1-crash.ll 
1.      Running pass 'Function Pass Manager' on module 'hex-i1-crash.ll'.
2.      Running pass 'Hexagon DAG->DAG Pattern Instruction Selection' on
function '@g'
Abort

If I remove "-debug" I don't get the assertion anymroe.</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>