diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-07 07:50:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-07 07:50:34 +0000 |
commit | e880efe446f731b73558542c12a6f980b8baa765 (patch) | |
tree | 02d863c43f73a9652890c2944758ac255d110f95 /test/CodeGen/Generic/switch-lower.ll | |
parent | cb19438f63019eb557c1fbaeae8a6de78b03c584 (diff) | |
download | external_llvm-e880efe446f731b73558542c12a6f980b8baa765.zip external_llvm-e880efe446f731b73558542c12a6f980b8baa765.tar.gz external_llvm-e880efe446f731b73558542c12a6f980b8baa765.tar.bz2 |
Fix PR5421 by APInt'izing switch lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/switch-lower.ll')
-rw-r--r-- | test/CodeGen/Generic/switch-lower.ll | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/CodeGen/Generic/switch-lower.ll b/test/CodeGen/Generic/switch-lower.ll index eb240ed..1cefe82 100644 --- a/test/CodeGen/Generic/switch-lower.ll +++ b/test/CodeGen/Generic/switch-lower.ll @@ -1,8 +1,22 @@ ; RUN: llc < %s -; PR1197 -define void @exp_attr__expand_n_attribute_reference() { +; PR5421 +define void @test1() { +entry: + switch i128 undef, label %exit [ + i128 55340232221128654848, label %exit + i128 92233720368547758080, label %exit + i128 73786976294838206464, label %exit + i128 147573952589676412928, label %exit + ] +exit: + unreachable +} + + +; PR1197 +define void @test2() { entry: br i1 false, label %cond_next954, label %cond_true924 |