[llvm] 5f5fce0 - [PowerPC] adjust test to avoid getting zapped completely; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 13:16:07 PST 2020


Author: Sanjay Patel
Date: 2020-03-03T16:15:48-05:00
New Revision: 5f5fce06b99dd3965118e30c78ff9530448a2860

URL: https://github.com/llvm/llvm-project/commit/5f5fce06b99dd3965118e30c78ff9530448a2860
DIFF: https://github.com/llvm/llvm-project/commit/5f5fce06b99dd3965118e30c78ff9530448a2860.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/vsx-fma-mutate-trivial-copy.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/vsx-fma-mutate-trivial-copy.ll b/llvm/test/CodeGen/PowerPC/vsx-fma-mutate-trivial-copy.ll
index d9738a3dda27..5a838886dde1 100644
--- a/llvm/test/CodeGen/PowerPC/vsx-fma-mutate-trivial-copy.ll
+++ b/llvm/test/CodeGen/PowerPC/vsx-fma-mutate-trivial-copy.ll
@@ -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)


        


More information about the llvm-commits mailing list