brintos

brintos / llvm-project-archived public Read only

0
0
Text · 564 B · 9ecf47e Raw
25 lines · plain
1; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o - %s | llvm-readobj -r - | FileCheck %s2 3foo:4  .long 05  .p2align 26bar:7  .long 18 9baz:10  .byte foo - bar11  .short foo - bar12 13; CHECK: File: <stdin>14; CHECK: Format: Mach-O arm6415; CHECK: Arch: aarch6416; CHECK: AddressSize: 64bit17; CHECK: Relocations [18; CHECK:  Section __text {19; CHECK:    0x9 0 1 1 ARM64_RELOC_SUBTRACTOR 0 bar20; CHECK:    0x9 0 1 1 ARM64_RELOC_UNSIGNED 0 foo21; CHECK:    0x8 0 0 1 ARM64_RELOC_SUBTRACTOR 0 bar22; CHECK:    0x8 0 0 1 ARM64_RELOC_UNSIGNED 0 foo23; CHECK:  }24; CHECK: ]25