blob: 863b02528e1e22c8f1c076406ea8cee68cbaf254 [file] [log] [blame]
Hal Finkel8f6834d2011-12-05 17:55:17 +00001; RUN: llc < %s -mtriple=powerpc-apple-darwin
Evan Cheng29b502e2008-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]
David Blaikiea79ac142015-02-27 21:17:42 +00009 %tmp38 = load void ()*, void ()** %tmp28, align 4 ; <void ()*> [#uses=2]
Evan Cheng29b502e2008-03-05 22:09:42 +000010 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}