diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-01 21:27:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-01 21:27:24 +0000 |
commit | 215f0b77c8aac1e0d495c59e4b0985d7b97521bd (patch) | |
tree | d1a798088cc6ba18ad1c956e1f16e0246bda2955 /test/Transforms/LowerSwitch | |
parent | f98358efc7be57d1984c11ba2b3b02d92b530030 (diff) |
New testcase for the lowerswitch pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LowerSwitch')
-rw-r--r-- | test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll | 19 | ||||
-rw-r--r-- | test/Transforms/LowerSwitch/Makefile | 10 |
2 files changed, 29 insertions, 0 deletions
diff --git a/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll b/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll new file mode 100644 index 0000000000..1c8dfefbcc --- /dev/null +++ b/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll @@ -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 +} + diff --git a/test/Transforms/LowerSwitch/Makefile b/test/Transforms/LowerSwitch/Makefile new file mode 100644 index 0000000000..91acd4d481 --- /dev/null +++ b/test/Transforms/LowerSwitch/Makefile @@ -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) $< |