[llvm-commits] CVS: llvm/test/Regression/Transforms/PruneEH/Makefile recursivetest.llx simpletest.llx
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 30 21:39:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/PruneEH:
Makefile added (r1.1)
recursivetest.llx added (r1.1)
simpletest.llx added (r1.1)
---
Log message:
new tests
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/PruneEH/Makefile
diff -c /dev/null llvm/test/Regression/Transforms/PruneEH/Makefile:1.1
*** /dev/null Sat Aug 30 21:38:56 2003
--- llvm/test/Regression/Transforms/PruneEH/Makefile Sat Aug 30 21:38:46 2003
***************
*** 0 ****
--- 1,10 ----
+
+ LEVEL = ../../../..
+ include $(LEVEL)/test/Makefile.tests
+
+ TESTS := $(wildcard *.llx)
+
+ all:: $(addprefix Output/, $(TESTS:%.llx=%.llx.out))
+
+ Output/%.llx.out: %.llx Output/.dir $(LOPT)
+ -$(TESTRUNR) $<
Index: llvm/test/Regression/Transforms/PruneEH/recursivetest.llx
diff -c /dev/null llvm/test/Regression/Transforms/PruneEH/recursivetest.llx:1.1
*** /dev/null Sat Aug 30 21:38:56 2003
--- llvm/test/Regression/Transforms/PruneEH/recursivetest.llx Sat Aug 30 21:38:46 2003
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: as < %s | opt -prune-eh | dis | not grep invoke
+
+ implementation
+
+ internal int %foo() {
+ invoke int %foo() to label %Normal except label %Except
+ Normal:
+ ret int 12
+ Except:
+ ret int 123
+ }
+
+ int %caller() {
+ invoke int %foo() to label %Normal except label %Except
+ Normal:
+ ret int 0
+ Except:
+ ret int 1
+ }
Index: llvm/test/Regression/Transforms/PruneEH/simpletest.llx
diff -c /dev/null llvm/test/Regression/Transforms/PruneEH/simpletest.llx:1.1
*** /dev/null Sat Aug 30 21:38:56 2003
--- llvm/test/Regression/Transforms/PruneEH/simpletest.llx Sat Aug 30 21:38:46 2003
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: as < %s | opt -prune-eh | dis | not grep invoke
+
+ implementation
+
+ internal void %foo() {
+ ret void ; does not throw
+ }
+
+ int %caller() {
+ invoke void %foo() to label %Normal except label %Except
+ Normal:
+ ret int 0
+ Except:
+ ret int 1
+ }
More information about the llvm-commits
mailing list