brintos

brintos / llvm-project-archived public Read only

0
0
Text · 519 B · d12addb Raw
24 lines · plain
1; Check the function call in PIC relocation model.2 3; If the relocation model is PIC, then the "bl" instruction for the function4; call to the external function should come with PLT fixup type.5 6; RUN:  llc < %s -mtriple=armv7-unknown-linux-gnueabi \7; RUN:           -relocation-model=pic -fast-isel -verify-machineinstrs \8; RUN:    | FileCheck %s9 10define void @test() {11entry:12 13  %0 = call i32 @get()14; CHECK: bl get15 16  call void @put(i32 %0)17; CHECK: bl put18 19  ret void20}21 22declare i32 @get()23declare void @put(i32)24