From: Chris Lattner Date: Sun, 25 Mar 2007 20:42:40 +0000 (+0000) Subject: new testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7d4d6b86158c1e692c86e5426692d68854976127;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35340 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/cast2.ll b/test/Transforms/InstCombine/cast2.ll index 5151f8448c6..c5e91461fa8 100644 --- a/test/Transforms/InstCombine/cast2.ll +++ b/test/Transforms/InstCombine/cast2.ll @@ -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 ; [#uses=1] + ret i32* %tmp65 +} diff --git a/test/Transforms/InstCombine/getelementptr.ll b/test/Transforms/InstCombine/getelementptr.ll index 53a2892dc74..2e1c59387f1 100644 --- a/test/Transforms/InstCombine/getelementptr.ll +++ b/test/Transforms/InstCombine/getelementptr.ll @@ -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"