Remove llvm-upgrade and update test cases.
[oota-llvm.git] / test / Transforms / InstCombine / 2008-01-06-BitCastAttributes.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
2
3 define void @a() {
4         ret void
5 }
6
7 define i32 @b(i32* inreg  %x) signext  {
8         ret i32 0
9 }
10
11 define void @c(...) {
12         ret void
13 }
14
15 define void @g(i32* %y) {
16         call void bitcast (void ()* @a to void (i32*)*)( i32* noalias  %y )
17         call <2 x i32> bitcast (i32 (i32*)* @b to <2 x i32> (i32*)*)( i32* inreg  null )                ; <<2 x i32>>:1 [#uses=0]
18         %x = call i64 bitcast (i32 (i32*)* @b to i64 (i32)*)( i32 0 )           ; <i64> [#uses=0]
19         call void bitcast (void (...)* @c to void (i32)*)( i32 0 )
20         call void bitcast (void (...)* @c to void (i32)*)( i32 zeroext  0 )
21         ret void
22 }