<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 --- - LLVM ERROR: Cannot select (@llvm.maxnum.v2f32)"
   href="https://llvm.org/bugs/show_bug.cgi?id=26244">26244</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: Cannot select (@llvm.maxnum.v2f32)
          </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>Linux
          </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>rahulchaudhry@chromium.org
          </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>Created <span class=""><a href="attachment.cgi?id=15684" name="attach_15684" title="Reproducer">attachment 15684</a> <a href="attachment.cgi?id=15684&action=edit" title="Reproducer">[details]</a></span>
Reproducer

See the attached reduced.ll file.

$ llc reduced.ll 
LLVM ERROR: Cannot select: t4: v2f32 = fmaxnum t20, undef:v2f32
  t20: v2f32 = bitcast t19
    t19: v2i32 = ARMISD::VMOVIMM TargetConstant:i32<0>
      t18: i32 = TargetConstant<0>
  t1: v2f32 = undef
In function: foo

Using llvm/clang from tip-of-trunk (as of 01/20/2016).


This issue was found while trying to build Chrome browser for Chrome OS. The
(reduced) set of flags used to compile the original c++ file were:

clang++ \
        -cc1 \
        -triple thumbv7-cros-linux-gnueabi \
        -target-cpu cortex-a8 \
        -target-feature +fp-armv8 \
        -vectorize-slp \
        -std=gnu++11 \
        -emit-obj \
        -O2 \
        test.cpp

Removing the "-vectorize-slp" flag lets the compile go through.</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>