new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-03-25 20:42:40 +00:00
parent 2149a9dfec
commit 7d4d6b8615
2 changed files with 8 additions and 1 deletions

View File

@ -20,5 +20,11 @@ define i16 @test2(i16 %a) {
ret i16 %tmp.upgrd.3
}
; PR1263
define i32* @test3(i32* %tmp1) {
%tmp64 = bitcast i32* %tmp1 to { i32 }* ; <{ i32 }*> [#uses=1]
%tmp65 = getelementptr { i32 }* %tmp64, i32 0, i32 0 ; <i32*> [#uses=1]
ret i32* %tmp65
}

View File

@ -1,6 +1,7 @@
; The %A getelementptr instruction should be eliminated here
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v '%B' | not grep getelementptr
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v '%B' | not grep getelementptr &&
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep foo1
%Global = constant [10 x sbyte] c"helloworld"