diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-23 05:10:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-23 05:10:53 +0000 |
commit | 5e845c5444637158f4779ac9058c6001d79b1bcc (patch) | |
tree | 4eb5089b8fd724f9a76566303107409da4888a8f | |
parent | 0bd2189e5f459833d661a705b566139445a00f7f (diff) |
A new testcase for an instcombine miscompilation!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9402 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll | 10 |
1 files changed, 10 insertions, 0 deletions
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 0000000000..ec1751cf4a --- /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 +} |