First testcase for SCCP pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2440 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-05-02 20:18:37 +00:00
parent 17c48f7337
commit f36c34f625
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,12 @@
; RUN: if as < %s | opt -sccp | dis | grep sub
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
void "test3"(int, int)
begin
add int 0, 0
sub int 0, 4
ret void
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) $<