projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NaryReassociate] Improve test CHECK
[oota-llvm.git]
/
test
/
Transforms
/
NaryReassociate
/
nary-mul.ll
diff --git
a/test/Transforms/NaryReassociate/nary-mul.ll
b/test/Transforms/NaryReassociate/nary-mul.ll
index 3ec6615c2bd9104f37826add8fb80662d0bf17a4..467843c7a39ac2dfcf9009d8857b72b816097af2 100644
(file)
--- a/
test/Transforms/NaryReassociate/nary-mul.ll
+++ b/
test/Transforms/NaryReassociate/nary-mul.ll
@@
-11,8
+11,9
@@
define void @bar(i32 %a, i32 %b, i32 %c) {
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
}