diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-24 17:34:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-24 17:34:02 +0000 |
commit | b464997bbaf2330d2d0b0ada828d1840c0925776 (patch) | |
tree | 1b0893e07d9dee1aa84d30445f60864989a5eeff | |
parent | 243be2c80d97686dd8621c4e218be514f15a384f (diff) |
Testcase for a new instcombine xform, patch contributed by Nick Lewycky!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28449 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll b/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll new file mode 100644 index 0000000000..cca6437681 --- /dev/null +++ b/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll @@ -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 +} |