From: Cameron McInally Date: Thu, 16 May 2019 19:00:57 +0000 (+0000) Subject: [NFC][InstSimplify] Update fast-math.ll tests I botched in r360808. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef6ec86b0c5c79f4541dc6b254780032ffd129df;p=llvm [NFC][InstSimplify] Update fast-math.ll tests I botched in r360808. These were new tests I added in r360808. I made a mistake while converting the exisiting binary FNeg test into the new unary FNeg tests. Correct that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360928 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstSimplify/fast-math.ll b/test/Transforms/InstSimplify/fast-math.ll index 3dc2ad2bfca..bb0e3683c2a 100644 --- a/test/Transforms/InstSimplify/fast-math.ll +++ b/test/Transforms/InstSimplify/fast-math.ll @@ -219,12 +219,12 @@ define float @fsub_0_0_x(float %a) { ; fsub nsz 0.0, (fneg X) ==> X define float @fneg_x(float %a) { ; CHECK-LABEL: @fneg_x( -; CHECK-NEXT: [[T1:%.*]] = fsub float 0.000000e+00, [[A:%.*]] -; CHECK-NEXT: [[RET:%.*]] = fneg nsz float [[T1]] +; CHECK-NEXT: [[T1:%.*]] = fneg float [[A:%.*]] +; CHECK-NEXT: [[RET:%.*]] = fsub nsz float 0.000000e+00, [[T1]] ; CHECK-NEXT: ret float [[RET]] ; - %t1 = fsub float 0.0, %a - %ret = fneg nsz float %t1 + %t1 = fneg float %a + %ret = fsub nsz float 0.0, %t1 ret float %ret } @@ -239,12 +239,12 @@ define <2 x float> @fsub_0_0_x_vec_undef1(<2 x float> %a) { define <2 x float> @fneg_x_vec_undef1(<2 x float> %a) { ; CHECK-LABEL: @fneg_x_vec_undef1( -; CHECK-NEXT: [[T1:%.*]] = fsub <2 x float> , [[A:%.*]] -; CHECK-NEXT: [[RET:%.*]] = fneg nsz <2 x float> [[T1]] +; CHECK-NEXT: [[T1:%.*]] = fneg <2 x float> [[A:%.*]] +; CHECK-NEXT: [[RET:%.*]] = fsub nsz <2 x float> , [[T1]] ; CHECK-NEXT: ret <2 x float> [[RET]] ; - %t1 = fsub <2 x float> , %a - %ret = fneg nsz <2 x float> %t1 + %t1 = fneg <2 x float> %a + %ret = fsub nsz <2 x float> , %t1 ret <2 x float> %ret }