diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-07 20:51:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-07 20:51:59 +0000 |
commit | d2abd3b81f3e8fcb13f68b13554f259d83323c58 (patch) | |
tree | a15ef32f53c2b2f261a3625b2761ffac0621b25d /test/Transforms/ADCE | |
parent | 54753e279032efd7d7f9aba12dbbb5b7ba8a20ce (diff) | |
download | llvm-d2abd3b81f3e8fcb13f68b13554f259d83323c58.tar.gz llvm-d2abd3b81f3e8fcb13f68b13554f259d83323c58.tar.bz2 llvm-d2abd3b81f3e8fcb13f68b13554f259d83323c58.tar.xz |
ADCE tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ADCE')
-rw-r--r-- | test/Transforms/ADCE/2002-01-31-UseStuckAround.ll | 15 | ||||
-rw-r--r-- | test/Transforms/ADCE/Makefile | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/Transforms/ADCE/2002-01-31-UseStuckAround.ll b/test/Transforms/ADCE/2002-01-31-UseStuckAround.ll new file mode 100644 index 0000000000..7f6227063c --- /dev/null +++ b/test/Transforms/ADCE/2002-01-31-UseStuckAround.ll @@ -0,0 +1,15 @@ +; RUN: as < %s | opt -adce + +implementation + +int "main"(int %argc) +begin + br label %2 + + %retval = phi int [ %argc, %2 ] ; <int> [#uses=2] + %two = add int %retval, %retval ; <int> [#uses=1] + ret int %two + + br label %1 +end + diff --git a/test/Transforms/ADCE/Makefile b/test/Transforms/ADCE/Makefile new file mode 100644 index 0000000000..91acd4d481 --- /dev/null +++ b/test/Transforms/ADCE/Makefile @@ -0,0 +1,10 @@ + +LEVEL = ../../../.. +include $(LEVEL)/test/Makefile.tests + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out)) + +Output/%.ll.out: %.ll Output/.dir $(LOPT) + -$(TESTRUNR) $< |