<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 --- - cannot select v2f64 = fround"
   href="http://llvm.org/bugs/show_bug.cgi?id=16842">16842</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cannot select v2f64 = fround
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nlewycky@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>hfinkel@anl.gov, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This .ll file causes llc to crash:

target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

declare void @use(<2 x double>)

; Function Attrs: nounwind uwtable
define void @test() {
entry:
  %tmp = call <2 x double> @llvm.round.v2f64(<2 x double> undef)
  call void @use(<2 x double> %tmp)
  ret void
}

; Function Attrs: nounwind readonly
declare <2 x double> @llvm.round.v2f64(<2 x double>) #0

attributes #0 = { nounwind readonly }

with:

nlewycky@ducttape:~$ llvm/Debug+Asserts/bin/llc b.ll
LLVM ERROR: Cannot select: 0x388e050: v2f64 = fround 0x388df50 [ORD=1] [ID=7]
  0x388df50: v2f64 = undef [ID=1]
In function: test</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>