blob: d01c404e03fda026d5ab6c4da598ba1ad2cfccfb [file] [log] [blame]
Matthijs Kooijman6c0890a2008-06-10 16:13:38 +00001; Ignore stderr, we expect warnings there
Dan Gohman72a13d22009-09-08 22:34:10 +00002; RUN: opt %s -instcombine 2> /dev/null -S | not grep bitcast
Duncan Sands404eb052008-01-06 18:27:01 +00003
4define void @a() {
5 ret void
6}
7
8define i32 @b(i32* inreg %x) signext {
9 ret i32 0
10}
11
12define void @c(...) {
13 ret void
14}
15
16define void @g(i32* %y) {
17 call void bitcast (void ()* @a to void (i32*)*)( i32* noalias %y )
18 call <2 x i32> bitcast (i32 (i32*)* @b to <2 x i32> (i32*)*)( i32* inreg null ) ; <<2 x i32>>:1 [#uses=0]
19 %x = call i64 bitcast (i32 (i32*)* @b to i64 (i32)*)( i32 0 ) ; <i64> [#uses=0]
20 call void bitcast (void (...)* @c to void (i32)*)( i32 0 )
Duncan Sands404eb052008-01-06 18:27:01 +000021 call void bitcast (void (...)* @c to void (i32)*)( i32 zeroext 0 )
22 ret void
23}