diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-24 02:13:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-24 02:13:50 +0000 |
commit | 90970609f24bc3591e4f0010843d3fcb26547bbb (patch) | |
tree | 9a2ddcb4ab88f523018b683f3f19b4fc3cbf42f7 /test/Transforms/SimplifyCFG/switch_create.ll | |
parent | 3a7118d7daaf53783686fcf350dbfdaee5abd6c9 (diff) | |
download | external_llvm-90970609f24bc3591e4f0010843d3fcb26547bbb.tar.gz external_llvm-90970609f24bc3591e4f0010843d3fcb26547bbb.tar.bz2 external_llvm-90970609f24bc3591e4f0010843d3fcb26547bbb.zip |
add another testcase to make sure it gets turned into a switch (answer: yes it does)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/switch_create.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/switch_create.ll | 15 |
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 +} + + |