[llvm] r364646 - [NFC][NewGVN] Pre-commit unary FNeg test to fpmath.ll

Cameron McInally via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 07:39:59 PDT 2019


Author: mcinally
Date: Fri Jun 28 07:39:58 2019
New Revision: 364646

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

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

Modified: llvm/trunk/test/Transforms/NewGVN/fpmath.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NewGVN/fpmath.ll?rev=364646&r1=364645&r2=364646&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/NewGVN/fpmath.ll (original)
+++ llvm/trunk/test/Transforms/NewGVN/fpmath.ll Fri Jun 28 07:39:58 2019
@@ -41,5 +41,16 @@ define double @test4(double %x, double %
   ret double %foo
 }
 
+define double @test5(double %x) {
+; CHECK: @test5(double %x)
+; 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