mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
New testcase distilled from SPEC vortex benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da37a05774
commit
10b37b6493
14
test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll
Normal file
14
test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll
Normal 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
|
||||
}
|
10
test/Transforms/ConstantMerge/Makefile
Normal file
10
test/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