1 ; Check the function call in PIC relocation model. 2 3 ; If the relocation model is PIC, then the "bl" instruction for the function 4 ; 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 %s 9 10 define void @test() { 11 entry: 12 13 %0 = call i32 @get() 14 ; CHECK: bl get(PLT) 15 16 call void @put(i32 %0) 17 ; CHECK: bl put(PLT) 18 19 ret void 20 } 21 22 declare i32 @get() 23 declare void @put(i32) 24