1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

ADCE tests

llvm-svn: 2544
This commit is contained in:
Chris Lattner 2002-05-07 20:51:59 +00:00
parent c636f5427b
commit 4e234c9a1f
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) $<