1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=SMALL-BSS %s 2*9880d681SAndroid Build Coastguard Worker@bar = common global i32 0, align 4 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdeclare i32 @call_foo(i32, ...) 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine i32 @foo() { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %0 = load i32, i32* @bar, align 4 9*9880d681SAndroid Build Coastguard Worker %call = call i32 (i32, ...) @call_foo(i32 %0, i32 0, i32 1, i32 2, i32 4, i32 8, i32 16, i32 32, i32 64) 10*9880d681SAndroid Build Coastguard Worker ret i32 0 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!0} 14*9880d681SAndroid Build Coastguard Worker!0 = !{i32 1, !"PIC Level", i32 1} 15*9880d681SAndroid Build Coastguard Worker; SMALL-BSS-LABEL:foo: 16*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: stw 30, -8(1) 17*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: stwu 1, -32(1) 18*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: bl _GLOBAL_OFFSET_TABLE_@local-4 19*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: mflr 30 20*9880d681SAndroid Build Coastguard Worker; SMALL-BSS-DAG: stw {{[0-9]+}}, 8(1) 21*9880d681SAndroid Build Coastguard Worker; SMALL-BSS-DAG: lwz [[VREG:[0-9]+]], bar@GOT(30) 22*9880d681SAndroid Build Coastguard Worker; SMALL-BSS-DAG: lwz {{[0-9]+}}, 0([[VREG]]) 23*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: bl call_foo@PLT 24*9880d681SAndroid Build Coastguard Worker; SMALL-BSS: lwz 30, -8(1) 25