summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/commute.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/Reassociate/commute.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/commute.ll15
1 files changed, 9 insertions, 6 deletions
diff --git a/llvm/test/Transforms/Reassociate/commute.ll b/llvm/test/Transforms/Reassociate/commute.ll
index 760e51b05e1..6009159d787 100644
--- a/llvm/test/Transforms/Reassociate/commute.ll
+++ b/llvm/test/Transforms/Reassociate/commute.ll
@@ -1,14 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -reassociate -S < %s | FileCheck %s
declare void @use(i32)
define void @test1(i32 %x, i32 %y) {
-; CHECK-LABEL: test1
-; CHECK: mul i32 %y, %x
-; CHECK: mul i32 %y, %x
-; CHECK: sub i32 %1, %2
-; CHECK: call void @use(i32 %{{.*}})
-; CHECK: call void @use(i32 %{{.*}})
+; CHECK-LABEL: @test1(
+; CHECK-NEXT: [[TMP1:%.*]] = mul i32 [[Y:%.*]], [[X:%.*]]
+; CHECK-NEXT: [[TMP2:%.*]] = mul i32 [[Y]], [[X]]
+; CHECK-NEXT: [[TMP3:%.*]] = sub i32 [[TMP1]], [[TMP2]]
+; CHECK-NEXT: call void @use(i32 [[TMP1]])
+; CHECK-NEXT: call void @use(i32 [[TMP3]])
+; CHECK-NEXT: ret void
+;
%1 = mul i32 %x, %y
%2 = mul i32 %y, %x
OpenPOWER on IntegriCloud