[llvm] r368056 - [NFC][EarlyCSE] Pre-commit unary FNeg tests.

Cameron McInally via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 09:41:31 PDT 2019


Author: mcinally
Date: Tue Aug  6 09:41:30 2019
New Revision: 368056

URL: http://llvm.org/viewvc/llvm-project?rev=368056&view=rev
Log:
[NFC][EarlyCSE] Pre-commit unary FNeg tests.

Modified:
    llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll

Modified: llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll?rev=368056&r1=368055&r2=368056&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll (original)
+++ llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll Tue Aug  6 09:41:30 2019
@@ -13,3 +13,16 @@ define <4 x float> @fW( <4 x float> %a)
        %b = fadd  <4 x float> %a, <float -0.0,float -0.0,float -0.0,float -0.0>
        ret <4 x float> %b
 }
+
+; CSE unary fnegs.
+define void @fX(<4 x float> *%p, <4 x float> %a) {
+       ; CHECK: %x = fneg <4 x float> %a
+       ; CHECK: %y = fneg <4 x float> %a
+       ; CHECK-NEXT:  store volatile <4 x float> %x, <4 x float>* %p
+       ; CHECK-NEXT: store volatile <4 x float> %y, <4 x float>* %p
+       %x = fneg <4 x float> %a
+       %y = fneg <4 x float> %a
+       store volatile <4 x float> %x, <4 x float>* %p
+       store volatile <4 x float> %y, <4 x float>* %p
+       ret void
+}




More information about the llvm-commits mailing list