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

            Bug ID: 20374
           Summary: cannot select X86ISD::FHADD
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

llc b.ll produces:

LLVM ERROR: Cannot select: 0x41fa108: v2f64 = X86ISD::FHADD 0x41f9ef8,
0x41f9ef8 [ORD=2] [ID=4]
  0x41f9ef8: v2f64 = undef [ID=1]
  0x41f9ef8: v2f64 = undef [ID=1]
In function: test

Testcase:

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind readnone
declare <2 x double> @llvm.x86.sse3.hadd.pd(<2 x double>, <2 x double>) #0

; Function Attrs: nounwind uwtable
define void @test() #1 align 2 {
entry:
  %0 = tail call <2 x double> @llvm.x86.sse3.hadd.pd(<2 x double> undef, <2 x
double> undef)
  %vecext = extractelement <2 x double> %0, i32 0
  br label %label

label:
  %add = fadd double %vecext, undef
  unreachable
}

attributes #0 = { nounwind readnone }
attributes #1 = { nounwind uwtable "less-precise-fpmad"="false"
"no-frame-pointer-elim"="false" "no-infs-fp-math"="false"
"no-nans-fp-math"="false" "stack-protector-buffer-size"="8"
"unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.ident = !{!0}

!0 = metadata !{metadata !"clang version 3.5.0 (trunk 213342)"}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to