blob: 7b3281ff4eadbc418fac5081def048927ecb65f3 [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -S | grep bitcast | count 2
Duncan Sands781f6542008-01-13 08:02:44 +00002
3define i32 @b(i32* inreg %x) signext {
4 ret i32 0
5}
6
7define void @c(...) {
8 ret void
9}
10
11define void @g(i32* %y) {
12 call i32 bitcast (i32 (i32*)* @b to i32 (i32)*)( i32 zeroext 0 ) ; <i32>:2 [#uses=0]
13 call void bitcast (void (...)* @c to void (i32*)*)( i32* sret null )
14 ret void
15}