forked from OSchip/llvm-project
New testcase distilled from SPEC vortex benchmark
llvm-svn: 3894
This commit is contained in:
parent
935559ad2a
commit
be4521f333
|
@ -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
|
||||
}
|
|
@ -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) $<
|
Loading…
Reference in New Issue