mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
New testcase for the lowerswitch pass
llvm-svn: 5977
This commit is contained in:
parent
00a12b165a
commit
d7d2a8911b
@ -0,0 +1,19 @@
|
||||
; RUN: as < %s | opt -lowerswitch
|
||||
|
||||
void %child(int %ct.1) {
|
||||
entry: ; No predecessors!
|
||||
switch uint 0, label %return [
|
||||
uint 2, label %UnifiedExitNode
|
||||
uint 3, label %UnifiedExitNode
|
||||
uint 0, label %return
|
||||
uint 1, label %UnifiedExitNode
|
||||
]
|
||||
|
||||
return: ; preds = %entry, %entry
|
||||
%result.0 = phi %struct.quad_struct* [ null, %entry ], [ null, %entry ] ; <%struct.quad_struct*> [#uses=0]
|
||||
br label %UnifiedExitNode
|
||||
|
||||
UnifiedExitNode: ; preds = %entry, %return, %entry, %entry
|
||||
ret void
|
||||
}
|
||||
|
10
test/Regression/Transforms/LowerSwitch/Makefile
Normal file
10
test/Regression/Transforms/LowerSwitch/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