New testcase distilled from SPEC vortex benchmark

llvm-svn: 3894
This commit is contained in:
Chris Lattner 2002-09-23 22:31:04 +00:00
parent 935559ad2a
commit be4521f333
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,14 @@
; RUN: as < %s | opt -constmerge > /dev/null
%foo = internal constant {int} {int 7}
%bar = internal constant {int} {int 7}
implementation
declare int %test(int*)
void %foo() {
call int %test(int* getelementptr ( {int} * %foo, long 0, ubyte 0))
call int %test(int* getelementptr ( {int} * %bar, long 0, ubyte 0))
ret void
}

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