aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
index 79b55a4c61..71269ecfbd 100644
--- a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
+++ b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
@@ -47,3 +47,14 @@ int %test4(uint %C) { ; Test folding switch -> branch
L1: ret int 0
L2: ret int 1
}
+
+int %test5(uint %C) {
+ switch uint %C, label %L1 [ ; Can fold into a cond branch!
+ uint 0, label %L2
+ uint 123, label %L1
+ ]
+L1: ret int 0
+L2: ret int 1
+}
+
+