[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / macho-relocs-with-addend.s
blobfee930eee1b3b5de30aa893380a386fcfe556e54
1 @ RUN: llvm-mc -triple thumbv7-apple-ios7.0 -filetype=obj -o - %s | \
2 @ RUN: llvm-readobj -r - | FileCheck %s
4 @ MachO relocations that end up expressed as internal
5 @ (scattered) still need to have the type set correctly.
7 .text
8 .thumb_func
9 .thumb
10 .globl _with_thumb
11 _with_thumb:
12 bl _dest+10
13 blx _dest+20
15 .globl _with_arm
16 .arm
17 _with_arm:
18 bl _dest+10
19 blx _dest+20
20 bne _dest+30
21 b _dest+40
23 .data
24 _dest:
25 .word 42
27 @ CHECK: Relocations [
28 @ CHECK-NEXT: Section __text {
29 @ CHECK-NEXT: 0x14 1 2 n/a ARM_RELOC_BR24 1 0x18
30 @ CHECK-NEXT: 0x10 1 2 n/a ARM_RELOC_BR24 1 0x18
31 @ CHECK-NEXT: 0xC 1 2 n/a ARM_RELOC_BR24 1 0x18
32 @ CHECK-NEXT: 0x8 1 2 n/a ARM_RELOC_BR24 1 0x18
33 @ CHECK-NEXT: 0x4 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x18
34 @ CHECK-NEXT: 0x0 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x18