[Alignment][NFC] Attributes use Align/MaybeAlign
[llvm-complete.git] / test / MC / PowerPC / ppc-reloc.s
blob999d33ec5759e449058af866c0d916a221838d23
1 # RUN: llvm-mc -triple=powerpc-unknown-linux-gnu -filetype=obj %s | \
2 # RUN: llvm-readobj -r | FileCheck %s
3 .section .text
5 .globl foo
6 .type foo,@function
7 .align 2
8 foo:
9 bl printf@plt
10 bl _GLOBAL_OFFSET_TABLE_@local-4
11 .LC1:
12 .size foo, . - foo
14 # CHECK: Relocations [
15 # CHECK-NEXT: Section {{.*}} .rela.text {
16 # CHECK-NEXT: 0x0 R_PPC_PLTREL24 printf 0x0
17 # CHECK-NEXT: 0x4 R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_ 0xFFFFFFFC
18 # CHECK-NEXT: }
19 # CHECK-NEXT: ]