Testcase for a new instcombine xform, patch contributed by Nick Lewycky!
authorChris Lattner <sabre@nondot.org>
Wed, 24 May 2006 17:34:02 +0000 (17:34 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 May 2006 17:34:02 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28449 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll [new file with mode: 0644]

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