[llvm] r359990 - Precommit an FNeg InstructionSimplify test.
Cameron McInally via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 11:22:09 PDT 2019
Author: mcinally
Date: Sun May 5 11:22:09 2019
New Revision: 359990
URL: http://llvm.org/viewvc/llvm-project?rev=359990&view=rev
Log:
Precommit an FNeg InstructionSimplify test.
Modified:
llvm/trunk/test/Analysis/ConstantFolding/fneg.ll
Modified: llvm/trunk/test/Analysis/ConstantFolding/fneg.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/ConstantFolding/fneg.ll?rev=359990&r1=359989&r2=359990&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/ConstantFolding/fneg.ll (original)
+++ llvm/trunk/test/Analysis/ConstantFolding/fneg.ll Sun May 5 11:22:09 2019
@@ -17,6 +17,17 @@ define float @fneg_undef() {
ret float %r
}
+define float @fneg_fneg_var(float %a) {
+; CHECK-LABEL: @fneg_fneg_var(
+; CHECK-NEXT: [[R:%.*]] = fneg float [[A:%.*]]
+; CHECK-NEXT: [[R1:%.*]] = fneg float [[R]]
+; CHECK-NEXT: ret float [[R1]]
+;
+ %r = fneg float %a
+ %r1 = fneg float %r
+ ret float %r1
+}
+
define <4 x float> @fneg_constant_elts_v4f32() {
; CHECK-LABEL: @fneg_constant_elts_v4f32(
; CHECK-NEXT: ret <4 x float> <float 0.000000e+00, float -0.000000e+00, float 1.000000e+00, float -1.000000e+00>
More information about the llvm-commits
mailing list