Skip to content
Snippets Groups Projects
Commit 3339c6a1 authored by Chris Lattner's avatar Chris Lattner
Browse files

expand testcase, which has been in my tree for a while now

llvm-svn: 24582
parent 2820b8c8
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,35 @@ ...@@ -9,6 +9,35 @@
declare void %use(bool) declare void %use(bool)
declare void %use(int) declare void %use(int)
void %test2(bool %c, bool %d, int %V, int %V2) {
br bool %d, label %X, label %F
X:
br bool %c, label %T, label %F
T:
br label %F
F:
%B1 = phi bool [true, %0], [false, %T], [false, %X]
%B2 = phi bool [true, %T], [false, %0], [false, %X]
%I1 = phi int [1, %T], [0, %0], [2, %X]
%I2 = phi int [1, %0], [0, %T], [3, %X]
%I3 = phi int [17, %T], [0, %0], [4, %X]
%I4 = phi int [17, %T], [5, %0], [44, %X]
%I5 = phi int [%V, %T], [0, %0], [%V, %X]
%I6 = phi int [%V, %0], [0, %T], [%V, %X]
%I7 = phi int [%V, %0], [%V2, %T], [%V2, %X]
call void %use(bool %B1)
call void %use(bool %B2)
call void %use(int %I1)
call void %use(int %I2)
call void %use(int %I3)
call void %use(int %I4)
call void %use(int %I5)
call void %use(int %I6)
call void %use(int %I7)
ret void
}
void %test(bool %c, int %V, int %V2) { void %test(bool %c, int %V, int %V2) {
br bool %c, label %T, label %F br bool %c, label %T, label %F
T: T:
...@@ -34,4 +63,3 @@ F: ...@@ -34,4 +63,3 @@ F:
call void %use(int %I7) call void %use(int %I7)
ret void ret void
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment