From: Chris Lattner Date: Wed, 24 May 2006 17:34:02 +0000 (+0000) Subject: Testcase for a new instcombine xform, patch contributed by Nick Lewycky! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b464997bbaf2330d2d0b0ada828d1840c0925776;p=oota-llvm.git Testcase for a new instcombine xform, patch contributed by Nick Lewycky! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28449 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll b/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll new file mode 100644 index 00000000000..cca6437681e --- /dev/null +++ b/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep undef + +%str = constant [4 x ubyte] c"str\00" + +ubyte %main() { + %A = load ubyte* getelementptr ([4 x ubyte]* %str, long 0, long 5) + ret ubyte %A +}