projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a7118d
)
add another testcase to make sure it gets turned into a switch (answer: yes it does)
author
Chris Lattner
<sabre@nondot.org>
Thu, 24 Feb 2005 02:13:50 +0000
(
02:13
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 24 Feb 2005 02:13:50 +0000
(
02:13
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20291
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/SimplifyCFG/switch_create.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/SimplifyCFG/switch_create.ll
b/test/Transforms/SimplifyCFG/switch_create.ll
index 95d7d4a0f641f93a369dabf724ba16f842778e84..ba1b7d65dc2f4fc5518cdf626fc4f36b8cca2962 100644
(file)
--- 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
+}
+
+