From: Chris Lattner Date: Tue, 7 May 2002 20:51:59 +0000 (+0000) Subject: ADCE tests X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d2abd3b81f3e8fcb13f68b13554f259d83323c58;p=oota-llvm.git ADCE tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2544 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 00000000000..7f6227063c5 --- /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 ] ; [#uses=2] + %two = add int %retval, %retval ; [#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 00000000000..91acd4d481b --- /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) $<