projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ce68b
)
New testcase
author
Chris Lattner
<sabre@nondot.org>
Tue, 23 Jul 2002 18:21:12 +0000
(18:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 23 Jul 2002 18:21:12 +0000
(18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3022
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Feature/indirectcall2.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/Feature/indirectcall2.ll
b/test/Feature/indirectcall2.ll
new file mode 100644
(file)
index 0000000..
4a12734
--- /dev/null
+++ b/
test/Feature/indirectcall2.ll
@@ -0,0
+1,21
@@
+implementation
+
+ulong "test"(ulong %X)
+begin
+ ret ulong %X
+end
+
+ulong "fib"(ulong %n)
+begin
+ %T = setlt ulong %n, 2 ; {bool}:0
+ br bool %T, label %BaseCase, label %RecurseCase
+
+RecurseCase:
+ %result = call ulong %test(ulong %n)
+ br label %BaseCase
+
+BaseCase:
+ %X = phi ulong [1, %0], [2, %RecurseCase]
+ ret ulong %X
+end
+