aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/SimplifyCFG/switch_create.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/switch_create.ll b/test/Transforms/SimplifyCFG/switch_create.ll
index 95d7d4a0f6..ba1b7d65dc 100644
--- a/test/Transforms/SimplifyCFG/switch_create.ll
+++ b/test/Transforms/SimplifyCFG/switch_create.ll
@@ -31,3 +31,18 @@ F:
}
+void %test3(int %V) {
+ %C1 = seteq int %V, 4
+ br bool %C1, label %T, label %N
+N:
+ %C2 = seteq int %V, 17
+ br bool %C2, label %T, label %F
+T:
+ call void %foo1()
+ ret void
+F:
+ call void %foo2()
+ ret void
+}
+
+