llvm.org GIT mirror llvm / 215f0b7
New testcase for the lowerswitch pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5977 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: as < %s | opt -lowerswitch
1
2 void %child(int %ct.1) {
3 entry: ; No predecessors!
4 switch uint 0, label %return [
5 uint 2, label %UnifiedExitNode
6 uint 3, label %UnifiedExitNode
7 uint 0, label %return
8 uint 1, label %UnifiedExitNode
9 ]
10
11 return: ; preds = %entry, %entry
12 %result.0 = phi %struct.quad_struct* [ null, %entry ], [ null, %entry ] ; <%struct.quad_struct*> [#uses=0]
13 br label %UnifiedExitNode
14
15 UnifiedExitNode: ; preds = %entry, %return, %entry, %entry
16 ret void
17 }
18
0
1 LEVEL = ../../../..
2 include $(LEVEL)/test/Makefile.tests
3
4 TESTS := $(wildcard *.ll)
5
6 all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
7
8 Output/%.ll.out: %.ll Output/.dir $(LOPT)
9 -$(TESTRUNR) $<