ADCE tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-05-07 20:51:59 +00:00
parent 54753e2790
commit d2abd3b81f
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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) $<