<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 X86ISD::FHADD"
href="http://llvm.org/bugs/show_bug.cgi?id=20374">20374</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>cannot select X86ISD::FHADD
</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>All
</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>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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)"}</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>