summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-14 22:30:39 +0000
committerChris Lattner <sabre@nondot.org>2002-03-14 22:30:39 +0000
commit3df17fe7a8811e4cd0df1c2d4ea95c9e5396b4eb (patch)
tree69e0917a4e8f3e6e6278a3175e4b02dc499455a2 /test/Other
parentf5c04ef6d3d7bcff1fb297063485ed239724e63f (diff)
downloadllvm-3df17fe7a8811e4cd0df1c2d4ea95c9e5396b4eb.tar.gz
llvm-3df17fe7a8811e4cd0df1c2d4ea95c9e5396b4eb.tar.bz2
llvm-3df17fe7a8811e4cd0df1c2d4ea95c9e5396b4eb.tar.xz
Testcase for bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/2002-03-14-ValueToLarge.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Other/2002-03-14-ValueToLarge.ll b/test/Other/2002-03-14-ValueToLarge.ll
new file mode 100644
index 0000000000..8daa138c88
--- /dev/null
+++ b/test/Other/2002-03-14-ValueToLarge.ll
@@ -0,0 +1,16 @@
+; Expression analysis had a problem where the following assertion would get
+; emitted:
+; Constants.cpp:114: failed assertion `isValueValidForType(Ty, V) &&
+; "Value too large for type!"'
+;
+; Testcase distilled from the bzip2 SPECint benchmark.
+;
+; RUN: analyze -exprs %s
+
+implementation
+
+void "sortIt"(ubyte %X)
+begin
+ %reg115 = shl ubyte %X, ubyte 8
+ ret void
+end