mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +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:
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) $<
|
Reference in New Issue
Block a user