Commit 5f5fce06 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[PowerPC] adjust test to avoid getting zapped completely; NFC

div-by-0 -> Inf
The math ops are 'fast' so 'ninf' applies and the whole thing is undef.
parent f002ee55
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

; Function Attrs: nounwind
define void @LSH_recall_init(float %d_min, float %W) #0 {
entry:
  br i1 undef, label %for.body.lr.ph, label %for.end
@@ -15,7 +14,7 @@ for.body.lr.ph: ; preds = %entry
  br label %for.body

for.body:                                         ; preds = %for.body, %for.body.lr.ph
  %div = fdiv fast float 0.000000e+00, 0.000000e+00
  %div = fdiv fast float 0.000000e+00, %W
  %add = fadd fast float %div, %d_min
  %conv2 = fpext float %add to double
  %0 = tail call double @llvm.sqrt.f64(double %conv2)