forked from OSchip/llvm-project
Initial checkin of first regression test for mem2reg pass
llvm-svn: 2016
This commit is contained in:
parent
97ca0eacb1
commit
0a0e090e4e
|
@ -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
|
|
@ -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