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
This commit is contained in:
Chris Lattner 2006-05-24 17:34:02 +00:00
parent 243be2c80d
commit b464997bba

View File

@ -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
}