brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · ca809a7 Raw
46 lines · plain
1# RUN: llvm-mc -triple=powerpc-linux-musl %s | FileCheck --check-prefix=PRINT %s2 3# RUN: llvm-mc -filetype=obj -triple=powerpc-linux-musl %s | llvm-readobj -r - | FileCheck %s4 5# PRINT: .reloc {{.*}}+8, R_PPC_NONE, .data6# PRINT: .reloc {{.*}}+4, R_PPC_NONE, foo+47# PRINT: .reloc {{.*}}+0, R_PPC_NONE, 88# PRINT: .reloc {{.*}}+0, R_PPC_ADDR32, .data+29# PRINT: .reloc {{.*}}+0, R_PPC_REL16_HI, foo+310# PRINT: .reloc {{.*}}+0, R_PPC_REL16_HA, 511# PRINT: .reloc {{.*}}+0, BFD_RELOC_NONE, 912# PRINT: .reloc {{.*}}+0, BFD_RELOC_16, 913# PRINT: .reloc {{.*}}+0, BFD_RELOC_32, 914 15# CHECK:      0x8 R_PPC_NONE .data 0x016# CHECK-NEXT: 0x4 R_PPC_NONE foo 0x417# CHECK-NEXT: 0x0 R_PPC_NONE - 0x818# CHECK-NEXT: 0x0 R_PPC_ADDR32 .data 0x219# CHECK-NEXT: 0x0 R_PPC_REL16_HI foo 0x320# CHECK-NEXT: 0x0 R_PPC_REL16_HA - 0x521# CHECK-NEXT: 0x0 R_PPC_NONE - 0x922# CHECK-NEXT: 0x0 R_PPC_ADDR16 - 0x923# CHECK-NEXT: 0x0 R_PPC_ADDR32 - 0x924 25.text26  .reloc .+8, R_PPC_NONE, .data27  .reloc .+4, R_PPC_NONE, foo+428  .reloc .+0, R_PPC_NONE, 829  .reloc .+0, R_PPC_ADDR32, .data+230  .reloc .+0, R_PPC_REL16_HI, foo+331  .reloc .+0, R_PPC_REL16_HA, 532 33  .reloc .+0, BFD_RELOC_NONE, 934  .reloc .+0, BFD_RELOC_16, 935  .reloc .+0, BFD_RELOC_32, 936  blr37  nop38  nop39 40.data41.globl foo42foo:43  .word 044  .word 045  .word 046