[PATCH] D12885: [NaryReassociate] Fix incomplete test functions
Volkan Keles via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 11:45:17 PDT 2015
volkan created this revision.
volkan added a reviewer: joker.eph.
volkan added a subscriber: llvm-commits.
Added `CHECK` directives for the function calls.
http://reviews.llvm.org/D12885
Files:
test/Transforms/NaryReassociate/nary-add.ll
test/Transforms/NaryReassociate/nary-mul.ll
Index: test/Transforms/NaryReassociate/nary-mul.ll
===================================================================
--- test/Transforms/NaryReassociate/nary-mul.ll
+++ test/Transforms/NaryReassociate/nary-mul.ll
@@ -11,8 +11,9 @@
call void @foo(i32 %1)
%2 = mul i32 %a, %b
%3 = mul i32 %2, %c
-; CHECK: mul i32 [[BASE]], %b
+; CHECK: [[RESULT:%[a-zA-Z0-9]+]] = mul i32 [[BASE]], %b
call void @foo(i32 %3)
+; CHECK-NEXT: call void @foo(i32 [[RESULT]])
ret void
}
Index: test/Transforms/NaryReassociate/nary-add.ll
===================================================================
--- test/Transforms/NaryReassociate/nary-add.ll
+++ test/Transforms/NaryReassociate/nary-add.ll
@@ -17,8 +17,9 @@
call void @foo(i32 %1)
%2 = add i32 %b, %c
%3 = add i32 %a, %2
-; CHECK: add i32 [[BASE]], %b
+; CHECK: [[RESULT:%[a-zA-Z0-9]+]] = add i32 [[BASE]], %b
call void @foo(i32 %3)
+; CHECK-NEXT: call void @foo(i32 [[RESULT]])
ret void
}
@@ -35,8 +36,9 @@
call void @foo(i32 %1)
%2 = add i32 %a, %b
%3 = add i32 %2, %c
-; CHECK: add i32 [[BASE]], %b
+; CHECK: [[RESULT:%[a-zA-Z0-9]+]] = add i32 [[BASE]], %b
call void @foo(i32 %3)
+; CHECK-NEXT: call void @foo(i32 [[RESULT]])
ret void
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12885.34818.patch
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150915/478b46a8/attachment.bin>
More information about the llvm-commits
mailing list