summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/no-op.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/Reassociate/no-op.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/no-op.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/Reassociate/no-op.ll b/llvm/test/Transforms/Reassociate/no-op.ll
index 7b02df99464..fe8d7832896 100644
--- a/llvm/test/Transforms/Reassociate/no-op.ll
+++ b/llvm/test/Transforms/Reassociate/no-op.ll
@@ -27,11 +27,11 @@ define void @test2(i32 %a, i32 %b, i32 %c, i32 %d) {
; The initial add doesn't change so should not lose the nsw flag.
; CHECK-LABEL: @test2(
%a0 = add nsw i32 %b, %a
-; CHECK-NEXT: %a0 = add nsw i32 %b, %a
+; CHECK-NEXT: %a0 = add nsw i32 %a, %b
%a1 = add nsw i32 %a0, %d
; CHECK-NEXT: %a1 = add i32 %a0, %c
%a2 = add nsw i32 %a1, %c
-; CHECK-NEXT: %a2 = add i32 %a1, %d
+; CHECK-NEXT: %a2 = add i32 %d, %a1
call void @use(i32 %a2)
; CHECK-NEXT: call void @use
ret void
OpenPOWER on IntegriCloud