<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 - [X86] Cannot select intrinsic FNMADD"
   href="https://bugs.llvm.org/show_bug.cgi?id=35932">35932</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[X86] Cannot select intrinsic FNMADD
          </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>eric.schweitz@pgroup.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=19668" name="attach_19668" title="Intrinsic select problem">attachment 19668</a> <a href="attachment.cgi?id=19668&action=edit" title="Intrinsic select problem">[details]</a></span>
Intrinsic select problem

This example is reduced from a much larger code and demonstrates the cannot
select issue.  The original code has a 655 calls to llvm.x86.fma.vfmadd
intrinsics, and this one triggers the LLVM ERROR.

% llc bug.bc -o bug.o
LLVM ERROR: Cannot select: t34: v2f64 = X86ISD::FNMADDS1 undef:v2f64,
undef:v2f64, t35
  t2: v2f64 = undef
  t2: v2f64 = undef
  t35: v2f64 = scalar_to_vector t38
    t38: f64,ch = load<LD8[ConstantPool]> t0, t40, undef:i64
      t40: i64 = X86ISD::Wrapper TargetConstantPool:i64<double 1.000000e+00> 0
        t39: i64 = TargetConstantPool<double 1.000000e+00> 0
      t37: i64 = undef
In function: bughere_</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>