A new testcase for an instcombine miscompilation!
authorChris Lattner <sabre@nondot.org>
Thu, 23 Oct 2003 05:10:53 +0000 (05:10 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 23 Oct 2003 05:10:53 +0000 (05:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9402 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll b/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll
new file mode 100644 (file)
index 0000000..ec1751c
--- /dev/null
@@ -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
+}