mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
ADCE tests
llvm-svn: 2544
This commit is contained in:
parent
c636f5427b
commit
4e234c9a1f
15
test/Regression/Transforms/ADCE/2002-01-31-UseStuckAround.ll
Normal file
15
test/Regression/Transforms/ADCE/2002-01-31-UseStuckAround.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: as < %s | opt -adce
|
||||
|
||||
implementation
|
||||
|
||||
int "main"(int %argc)
|
||||
begin
|
||||
br label %2
|
||||
|
||||
%retval = phi int [ %argc, %2 ] ; <int> [#uses=2]
|
||||
%two = add int %retval, %retval ; <int> [#uses=1]
|
||||
ret int %two
|
||||
|
||||
br label %1
|
||||
end
|
||||
|
10
test/Regression/Transforms/ADCE/Makefile
Normal file
10
test/Regression/Transforms/ADCE/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