X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FReassociate%2Ffast-ReassociateVector.ll;h=fb76b9d990b0627065a2ad86596ff46b37fa70b3;hb=12d60e9e7c149a7d333e277dfbe25a720c88c585;hp=9fbb5ccfe9a25ad4ea85c949f1144408e59a06f3;hpb=fe795a5d2015419953a2a314c7198e53a4d28740;p=oota-llvm.git diff --git a/test/Transforms/Reassociate/fast-ReassociateVector.ll b/test/Transforms/Reassociate/fast-ReassociateVector.ll index 9fbb5ccfe9a..fb76b9d990b 100644 --- a/test/Transforms/Reassociate/fast-ReassociateVector.ll +++ b/test/Transforms/Reassociate/fast-ReassociateVector.ll @@ -16,9 +16,9 @@ define <4 x float> @test1(<4 x float> %a, <4 x float> %b, <4 x float> %c) { ; Check that a*a*b+a*a*c is turned into a*(a*(b+c)). define <2 x float> @test2(<2 x float> %a, <2 x float> %b, <2 x float> %c) { ; CHECK-LABEL: @test2 -; CHECK-NEXT: fadd fast <2 x float> %c, %b -; CHECK-NEXT: fmul fast <2 x float> %a, %tmp2 -; CHECK-NEXT: fmul fast <2 x float> %tmp3, %a +; CHECK-NEXT: [[TMP1:%tmp.*]] = fadd fast <2 x float> %c, %b +; CHECK-NEXT: [[TMP2:%tmp.*]] = fmul fast <2 x float> %a, %a +; CHECK-NEXT: fmul fast <2 x float> [[TMP2]], [[TMP1]] ; CHECK-NEXT: ret <2 x float> %t0 = fmul fast <2 x float> %a, %b @@ -133,8 +133,8 @@ define <2 x float> @test10(<2 x float> %a, <2 x float> %b, <2 x float> %z) { ; Check x*y+y*x -> x*y*2. define <2 x double> @test11(<2 x double> %x, <2 x double> %y) { ; CHECK-LABEL: @test11 -; CHECK-NEXT: %factor = fmul fast <2 x double> %y, -; CHECK-NEXT: %tmp1 = fmul fast <2 x double> %factor, %x +; CHECK-NEXT: %factor = fmul fast <2 x double> %x, +; CHECK-NEXT: %tmp1 = fmul fast <2 x double> %factor, %y ; CHECK-NEXT: ret <2 x double> %tmp1 %1 = fmul fast <2 x double> %x, %y