Add test cases that were inadvertently omitted from r223783 and r223788
[oota-llvm.git] / test / CodeGen / PowerPC / ppc32-pic.ll
1 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=SMALL-BSS %s
2 @bar = common global i32 0, align 4
3
4 define i32 @foo() {
5 entry:
6   %0 = load i32* @bar, align 4
7   ret i32 %0
8 }
9
10 !llvm.module.flags = !{!0}
11 !0 = metadata !{i32 1, metadata !"PIC Level", i32 1}
12 ; SMALL-BSS-LABEL:foo:
13 ; SMALL-BSS:         bl _GLOBAL_OFFSET_TABLE_@local-4
14 ; SMALL-BSS:         mflr 30
15 ; SMALL-BSS:         lwz [[VREG:[0-9]+]], bar@GOT(30)
16 ; SMALL-BSS:         lwz {{[0-9]+}}, 0([[VREG]])