mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
ADCE tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54753e2790
commit
d2abd3b81f
15
test/Transforms/ADCE/2002-01-31-UseStuckAround.ll
Normal file
15
test/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/Transforms/ADCE/Makefile
Normal file
10
test/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…
x
Reference in New Issue
Block a user