<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 --- - Instcombine folds constant @llvm.fma.f80 to wrong value"
href="http://llvm.org/bugs/show_bug.cgi?id=21623">21623</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Instcombine folds constant @llvm.fma.f80 to wrong value
</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>Transformation Utilities
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mail+llvm@tzik.jp
</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>InstCombine folds constant @llvm.fma.f80 to wrong value.
This can reproduce as follows, where llvm.fma.f80 is folded to
0xK40008000000000000000, which is 2.0L.
$ cat foo.ll
declare x86_fp80 @llvm.fma.f80(x86_fp80, x86_fp80, x86_fp80)
define x86_fp80 @test() {
%1 = call x86_fp80 @llvm.fma.f80(
x86_fp80 0xK40008000000000000000, ; 2.0L
x86_fp80 0xK4000C000000000000000, ; 3.0L
x86_fp80 0xK40018000000000000000) ; 4.0L
ret x86_fp80 %1 ; should be 10.0L
}
$ opt -instcombine -S -o - foo.ll
; ModuleID = 'hoge.ll'
; Function Attrs: nounwind readnone
declare x86_fp80 @llvm.fma.f80(x86_fp80, x86_fp80, x86_fp80) #0
define x86_fp80 @test() {
ret x86_fp80 0xK40008000000000000000
}
attributes #0 = { nounwind readnone }</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>