From 5e845c5444637158f4779ac9058c6001d79b1bcc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Oct 2003 05:10:53 +0000 Subject: [PATCH] A new testcase for an instcombine miscompilation! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9402 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../InstCombine/2003-10-23-InstcombineNullFail.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll 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 +} -- 2.34.1