[llvm-commits] CVS: llvm/test/Regression/Transforms/Inline/2003-09-14-InlineValue.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 14 21:08:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/Inline:
2003-09-14-InlineValue.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/Inline/2003-09-14-InlineValue.ll
diff -c /dev/null llvm/test/Regression/Transforms/Inline/2003-09-14-InlineValue.ll:1.1
*** /dev/null Sun Sep 14 21:07:47 2003
--- llvm/test/Regression/Transforms/Inline/2003-09-14-InlineValue.ll Sun Sep 14 21:07:37 2003
***************
*** 0 ****
--- 1,20 ----
+ ; RUN: llvm-as < %s | opt -inline -disable-output
+
+ declare int %External()
+
+ implementation
+
+ internal int %Callee() {
+ %I = call int %External()
+ %J = add int %I, %I
+ ret int %J
+ }
+
+ int %Caller() {
+ %V = invoke int %Callee() to label %Ok except label %Bad
+ Ok:
+ ret int %V
+ Bad:
+ ret int 0
+ }
+
More information about the llvm-commits
mailing list