[LLVMbugs] [Bug 16842] New: cannot select v2f64 = fround

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 8 20:31:50 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16842

            Bug ID: 16842
           Summary: cannot select v2f64 = fround
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: hfinkel at anl.gov, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 at 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130809/7c79301a/attachment.html>


More information about the llvm-bugs mailing list