[llvm] r364587 - [NFC][GVN] Pre-commit unary FNeg tests to fpmath.ll

Cameron McInally via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 13:33:45 PDT 2019


Author: mcinally
Date: Thu Jun 27 13:33:44 2019
New Revision: 364587

URL: http://llvm.org/viewvc/llvm-project?rev=364587&view=rev
Log:
[NFC][GVN] Pre-commit unary FNeg tests to fpmath.ll

Modified:
    llvm/trunk/test/Transforms/GVN/fpmath.ll

Modified: llvm/trunk/test/Transforms/GVN/fpmath.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/fpmath.ll?rev=364587&r1=364586&r2=364587&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/fpmath.ll (original)
+++ llvm/trunk/test/Transforms/GVN/fpmath.ll Thu Jun 27 13:33:44 2019
@@ -41,5 +41,16 @@ define double @test4(double %x, double %
   ret double %foo
 }
 
+define double @test5(double %x, double %y) {
+; CHECK: @test5(double %x, double %y)
+; CHECK: %neg1 = fneg double %x, !fpmath !0
+; CHECK: %neg2 = fneg double %x, !fpmath !1
+; CHECK: %foo = fadd double %neg1, %neg2
+  %neg1 = fneg double %x, !fpmath !0
+  %neg2 = fneg double %x, !fpmath !1
+  %foo = fadd double %neg1, %neg2
+  ret double %foo
+}
+
 !0 = !{ float 5.0 }
 !1 = !{ float 2.5 }




More information about the llvm-commits mailing list