From 96f633af95a48d17a28c48e240f74802cf9ba72b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Mar 2002 22:30:39 +0000 Subject: [PATCH] Testcase for bug llvm-svn: 1875 --- .../Regression/Other/2002-03-14-ValueToLarge.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 llvm/test/Regression/Other/2002-03-14-ValueToLarge.ll diff --git a/llvm/test/Regression/Other/2002-03-14-ValueToLarge.ll b/llvm/test/Regression/Other/2002-03-14-ValueToLarge.ll new file mode 100644 index 000000000000..8daa138c8802 --- /dev/null +++ b/llvm/test/Regression/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