blob: e50fac4472a901b4ec848c9d29ec9efb2f22c1a6 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=powerpc-apple-darwin -enable-ppc32-regscavenger
Evan Chengecb2a8b2008-03-05 22:09:42 +00002
3declare i8* @bar(i32)
4
5define void @foo(i8* %pp) nounwind {
6entry:
7 %tmp2 = tail call i8* @bar( i32 14 ) nounwind ; <i8*> [#uses=0]
8 %tmp28 = bitcast i8* %pp to void ()** ; <void ()**> [#uses=1]
9 %tmp38 = load void ()** %tmp28, align 4 ; <void ()*> [#uses=2]
10 br i1 false, label %bb34, label %bb25
11bb25: ; preds = %entry
12 %tmp30 = bitcast void ()* %tmp38 to void (i8*)* ; <void (i8*)*> [#uses=1]
13 tail call void %tmp30( i8* null ) nounwind
14 ret void
15bb34: ; preds = %entry
16 tail call void %tmp38( ) nounwind
17 ret void
18}