Use MachineBasicBlock::transferSuccessors.
[oota-llvm.git] / test / Transforms / InstCombine / cast2.ll
index 5151f8448c6f6ad8be355a29628e316d34ea2a79..5cc9087198b2730d0f9c0cecd1f73929d9d62043 100644 (file)
@@ -1,5 +1,4 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: llvm-as < %s | opt -instcombine -disable-output &&
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
 
 define i16 @test1(i16 %a) {
@@ -20,5 +19,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
+}