[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-ExitInMain.ll dg.exp
Reid Spencer
reid at x10sys.com
Sun Apr 24 19:50:19 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyLibCalls:
2005-04-24-ExitInMain.ll added (r1.1)
dg.exp added (r1.1)
---
Log message:
A test case for the the ExitInMain libcall simplification.
---
Diffs of the changes: (+16 -0)
2005-04-24-ExitInMain.ll | 13 +++++++++++++
dg.exp | 3 +++
2 files changed, 16 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-ExitInMain.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-ExitInMain.ll:1.1
*** /dev/null Sun Apr 24 21:50:18 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/2005-04-24-ExitInMain.ll Sun Apr 24 21:50:08 2005
***************
*** 0 ****
--- 1,13 ----
+ ; Test that the ExitInMainOptimization pass works correctly
+ ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep -c 'ret int 3' | grep 1
+
+ declare void "exit"(int)
+ declare void "exitonly"(int)
+
+ implementation ; Functions:
+
+ int "main"() {
+ call void "exitonly" ( int 3 )
+ call void "exit" ( int 3 )
+ ret int 0
+ }
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/dg.exp
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/dg.exp:1.1
*** /dev/null Sun Apr 24 21:50:19 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/dg.exp Sun Apr 24 21:50:08 2005
***************
*** 0 ****
--- 1,3 ----
+ load_lib llvm-dg.exp
+
+ llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext
More information about the llvm-commits
mailing list