<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - ppc64le fp128 instruction selection issue"
href="https://bugs.llvm.org/show_bug.cgi?id=36809">36809</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ppc64le fp128 instruction selection issue
</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: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anton@samba.org
</td>
</tr>
<tr>
<th>CC</th>
<td>hfinkel@anl.gov, kit.barton@gmail.com, llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The test case below hits the following error on an LLVM build from today:
# llc reduce.ll
LLVM ERROR: Cannot select: 0x14c240350: f128,ch = load<(load 4 from
constant-pool), anyext from f32> 0x14c1d65a8, 0x14c240218, undef:i64
0x14c240218: i64,ch = PPCISD::TOC_ENTRY<(load 8 from got)>
TargetConstantPool:i64<float 0.000000e+00> 0, Register:i64 $x2
0x14c240900: i64 = TargetConstantPool<float 0.000000e+00> 0
0x14c240a38: i64 = Register $x2
0x14c2404f0: i64 = undef
In function: do_one
--
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bugpoint-output-6cb1b14.bc"
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"
@x = external dso_local global [1024 x fp128], align 16
; Function Attrs: noinline nounwind
define dso_local fastcc void @do_one() unnamed_addr #0 {
br label %1
; <label>:1: ; preds = %1, %0
br i1 undef, label %2, label %1
; <label>:2: ; preds = %1
tail call void (i8*, ...) @obfuscate(i8* bitcast ([1024 x fp128]* @x to i8*),
fp128 undef) #2
ret void
}
declare void @obfuscate(i8*, ...) local_unnamed_addr #1
attributes #0 = { noinline nounwind
"correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false"
"less-precise-fpmad"="false" "no-frame-pointer-elim"="false"
"no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false"
"no-signed-zeros-fp-math"="false" "no-trapping-math"="false"
"stack-protector-buffer-size"="8" "target-cpu"="pwr9"
"target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+float128,+htm,+power8-vector,+power9-vector,+vsx,-qpx"
"unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false"
"disable-tail-calls"="false" "less-precise-fpmad"="false"
"no-frame-pointer-elim"="false" "no-infs-fp-math"="false"
"no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false"
"no-trapping-math"="false" "stack-protector-buffer-size"="8"
"target-cpu"="pwr9"
"target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+float128,+htm,+power8-vector,+power9-vector,+vsx,-qpx"
"unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }
!llvm.ident = !{!0}
!0 = !{!"clang version 7.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
75ec747077d46ed5c15d28b06981d5291159d7b2)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
aa9b406e17ab028c95099d41aa10395df5d6e326)"}</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>