summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit8e1d7222a7cc1b1c1f6d1f9a556b1802c8ddf1ff (patch)
tree5e786d0a0d32cc79d927cc98d8cad6ac9587e263 /llvm/test
parent9b669b3c4fa3222888935ab6d88ab3174b4c95b8 (diff)
downloadbcm5719-llvm-8e1d7222a7cc1b1c1f6d1f9a556b1802c8ddf1ff.tar.gz
bcm5719-llvm-8e1d7222a7cc1b1c1f6d1f9a556b1802c8ddf1ff.zip
Fix PR5421 by APInt'izing switch lowering.
llvm-svn: 86354
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Generic/switch-lower.ll18
1 files changed, 16 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Generic/switch-lower.ll b/llvm/test/CodeGen/Generic/switch-lower.ll
index eb240edc7c6..1cefe82ce3d 100644
--- a/llvm/test/CodeGen/Generic/switch-lower.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud