diff options
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 8dd4c82..b8bab08 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -135,3 +135,17 @@ bool %test21(uint %x) { %y = seteq uint %t, 123 ret bool %y } + +int %test22(uint %V) { + %V2 = add uint %V, 10 + switch uint %V2, label %Default [ + uint 20, label %Lab1 + uint 30, label %Lab2 + ] +Default: + ret int 123 +Lab1: + ret int 12312 +Lab2: + ret int 1231231 +} |