summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-06 23:04:29 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-06 23:04:29 +0000
commit1f2b00c710da8f1486a56e961925589c4aa01a16 (patch)
treeb748b99336154a6d14639c5729d166be0edfcddc /test/CodeGen/Generic
parent8d93d19076fb6a67eeb63cb0ba79d00c3aa8478a (diff)
downloadllvm-1f2b00c710da8f1486a56e961925589c4aa01a16.tar.gz
llvm-1f2b00c710da8f1486a56e961925589c4aa01a16.tar.bz2
llvm-1f2b00c710da8f1486a56e961925589c4aa01a16.tar.xz
Add a testcase for PR8582, which mysteriously fixed itself, in case the problem
comes back some day. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r--test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll b/test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll
new file mode 100644
index 0000000000..05fdf4c744
--- /dev/null
+++ b/test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s
+; PR8582
+
+define void @uint82() nounwind {
+entry:
+ %tmp3 = select i1 undef, i960 4872657003430991806293355221650511486142000513558154090491761976385142772940676648094983476628187266917101386048750715027104076737938178423519545241493072038894065019132638919037781494702597609951702322267198307200588774905587225212622510286498675097141625012190497682454879271766334636032, i960 0
+ br i1 undef, label %for.body25.for.body25_crit_edge, label %if.end
+
+for.body25.for.body25_crit_edge: ; preds = %entry
+ %ins = or i960 %tmp3, undef
+ ret void
+
+if.end: ; preds = %entry
+ ret void
+}