summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/switch-lower.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-07 07:50:34 +0000
committerChris Lattner <sabre@nondot.org>2009-11-07 07:50:34 +0000
commite880efe446f731b73558542c12a6f980b8baa765 (patch)
tree02d863c43f73a9652890c2944758ac255d110f95 /test/CodeGen/Generic/switch-lower.ll
parentcb19438f63019eb557c1fbaeae8a6de78b03c584 (diff)
downloadllvm-e880efe446f731b73558542c12a6f980b8baa765.tar.gz
llvm-e880efe446f731b73558542c12a6f980b8baa765.tar.bz2
llvm-e880efe446f731b73558542c12a6f980b8baa765.tar.xz
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.ll18
1 files changed, 16 insertions, 2 deletions
diff --git a/test/CodeGen/Generic/switch-lower.ll b/test/CodeGen/Generic/switch-lower.ll
index eb240edc7c..1cefe82ce3 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