brintos

brintos / llvm-project-archived public Read only

0
0
Text · 622 B · 5bb55e5 Raw
28 lines · plain
1; Test various forms of calls.2 3; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \4; RUN:   grep "bl " | count 15; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \6; RUN:   grep "bctrl" | count 17; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \8; RUN:   grep "bla " | count 19 10declare void @foo()11 12define void @test_direct() {13        call void @foo( )14        ret void15}16 17define void @test_indirect(ptr %fp) {18        call void %fp( )19        ret void20}21 22define void @test_abs() {23        %fp = inttoptr i32 400 to ptr              ; <ptr> [#uses=1]24        call void %fp( )25        ret void26}27 28