From: Chris Lattner Date: Thu, 23 Oct 2003 05:10:53 +0000 (+0000) Subject: A new testcase for an instcombine miscompilation! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5e845c5444637158f4779ac9058c6001d79b1bcc;p=oota-llvm.git A new testcase for an instcombine miscompilation! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9402 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll b/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll new file mode 100644 index 00000000000..ec1751cf4a4 --- /dev/null +++ b/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep false +%X = type { [10 x int], float } + +implementation + +bool %test() { + %A = getelementptr %X* null, long 0, ubyte 0, long 0 + %B = setne int* %A, null + ret bool %B +}