mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Initial checkin of first regression test for mem2reg pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfd3a6afb0
commit
c4d5fec26f
13
test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
Normal file
13
test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; Uninitialized values are not handled correctly.
|
||||
;
|
||||
; RUN: as < %s | opt -mem2reg
|
||||
;
|
||||
|
||||
implementation
|
||||
|
||||
int "test"()
|
||||
begin
|
||||
%X = alloca int ; To be promoted
|
||||
%Y = load int* %X
|
||||
ret int %Y
|
||||
end
|
10
test/Transforms/Mem2Reg/Makefile
Normal file
10
test/Transforms/Mem2Reg/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…
Reference in New Issue
Block a user