[Reassociate] As the expression tree is rewritten make sure the operands are
[oota-llvm.git] / test / Transforms / Reassociate / 2002-05-15-SubReassociate.ll
index 29c178ffec3ec9c9b85351eface88fdd865043bd..1473c72c0534842e1fc1566849e7c9e7056bb665 100644 (file)
@@ -16,7 +16,7 @@ define i32 @test1(i32 %A, i32 %B) {
 ; With sub reassociation, constant folding can eliminate the two 12 constants.
 define i32 @test2(i32 %A, i32 %B, i32 %C, i32 %D) {
 ; CHECK-LABEL: test2
-; CHECK-NEXT: %sum = add i32 %B, %A
+; CHECK-NEXT: %sum = add i32 %A, %B
 ; CHECK-NEXT: %sum1 = add i32 %sum, %C
 ; CHECK-NEXT: %Q = sub i32 %D, %sum1
 ; CHECK-NEXT: ret i32 %Q