[llvm-bugs] [Bug 36809] New: ppc64le fp128 instruction selection issue

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 19 16:38:32 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=36809

            Bug ID: 36809
           Summary: ppc64le fp128 instruction selection issue
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: anton at samba.org
                CC: hfinkel at anl.gov, kit.barton at gmail.com,
                    llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

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 (https://github.com/llvm-mirror/clang.git
75ec747077d46ed5c15d28b06981d5291159d7b2)
(https://github.com/llvm-mirror/llvm.git
aa9b406e17ab028c95099d41aa10395df5d6e326)"}

-- 
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/20180319/afbd4524/attachment.html>


More information about the llvm-bugs mailing list