• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
2
3        xorl %eax,%eax
4
5        .globl _a
6_a:
7        xorl %eax,%eax
8_b:
9_d:
10        xorl %eax,%eax
11L0:
12        xorl %eax,%eax
13L1:
14
15        call L0
16        call L0 - 1
17        call L0 + 1
18        call _a
19        call _a - 1
20        call _a + 1
21        call _b
22        call _b - 1
23        call _b + 1
24        call _c
25        call _c - 1
26        call _c + 1
27//        call _a - L0
28        call _b - L0
29
30        .subsections_via_symbols
31
32// CHECK: Relocations [
33// CHECK-NEXT:   Section __text {
34// CHECK-NEXT:     0x45 1 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x4
35// CHECK-NEXT:     0x0 1 2 n/a GENERIC_RELOC_PAIR 1 0x6
36// CHECK-NEXT:     0x40 1 2 1 GENERIC_RELOC_VANILLA 0 _c
37// CHECK-NEXT:     0x3B 1 2 1 GENERIC_RELOC_VANILLA 0 _c
38// CHECK-NEXT:     0x36 1 2 1 GENERIC_RELOC_VANILLA 0 _c
39// CHECK-NEXT:     0x31 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
40// CHECK-NEXT:     0x2C 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
41// CHECK-NEXT:     0x27 1 2 0 GENERIC_RELOC_VANILLA 0 __text
42// CHECK-NEXT:     0x22 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
43// CHECK-NEXT:     0x1D 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
44// CHECK-NEXT:     0x18 1 2 0 GENERIC_RELOC_VANILLA 0 __text
45// CHECK-NEXT:   }
46// CHECK-NEXT: ]
47