mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 15:26:07 +00:00
New testcase distilled from SPEC vortex benchmark
llvm-svn: 3894
This commit is contained in:
parent
4bf3ffe7f5
commit
8a7da2fe0d
@ -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
|
||||
}
|
10
test/Regression/Transforms/ConstantMerge/Makefile
Normal file
10
test/Regression/Transforms/ConstantMerge/Makefile
Normal 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) $<
|
Loading…
x
Reference in New Issue
Block a user