blob: 4f27b84607ae389932e8ad0c59c2773891d249ac [file] [log] [blame]
Evan Chengecb2a8b2008-03-05 22:09:42 +00001; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin -enable-ppc-regscavenger
2
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}