2015-09-05 09:02:05 +08:00
|
|
|
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
|
2010-03-10 05:27:58 +08:00
|
|
|
|
|
|
|
xorl %eax,%eax
|
2012-01-18 06:03:42 +08:00
|
|
|
|
2010-03-10 05:27:58 +08:00
|
|
|
.globl _a
|
|
|
|
_a:
|
|
|
|
xorl %eax,%eax
|
|
|
|
_b:
|
2012-01-18 06:14:39 +08:00
|
|
|
_d:
|
2010-03-10 05:27:58 +08:00
|
|
|
xorl %eax,%eax
|
|
|
|
L0:
|
|
|
|
xorl %eax,%eax
|
2012-01-18 06:03:42 +08:00
|
|
|
L1:
|
2010-03-10 05:27:58 +08:00
|
|
|
|
|
|
|
call L0
|
|
|
|
call L0 - 1
|
|
|
|
call L0 + 1
|
|
|
|
call _a
|
|
|
|
call _a - 1
|
|
|
|
call _a + 1
|
|
|
|
call _b
|
|
|
|
call _b - 1
|
|
|
|
call _b + 1
|
|
|
|
call _c
|
|
|
|
call _c - 1
|
|
|
|
call _c + 1
|
|
|
|
// call _a - L0
|
|
|
|
call _b - L0
|
2011-12-08 03:46:59 +08:00
|
|
|
|
|
|
|
.subsections_via_symbols
|
2015-09-05 09:02:05 +08:00
|
|
|
|
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK-NEXT: Section __text {
|
|
|
|
// CHECK-NEXT: 0x45 1 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x4
|
|
|
|
// CHECK-NEXT: 0x0 1 2 n/a GENERIC_RELOC_PAIR 1 0x6
|
|
|
|
// CHECK-NEXT: 0x40 1 2 1 GENERIC_RELOC_VANILLA 0 _c
|
|
|
|
// CHECK-NEXT: 0x3B 1 2 1 GENERIC_RELOC_VANILLA 0 _c
|
|
|
|
// CHECK-NEXT: 0x36 1 2 1 GENERIC_RELOC_VANILLA 0 _c
|
|
|
|
// CHECK-NEXT: 0x31 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
|
|
|
|
// CHECK-NEXT: 0x2C 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
|
|
|
|
// CHECK-NEXT: 0x27 1 2 0 GENERIC_RELOC_VANILLA 0 __text
|
|
|
|
// CHECK-NEXT: 0x22 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
|
|
|
|
// CHECK-NEXT: 0x1D 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
|
|
|
|
// CHECK-NEXT: 0x18 1 2 0 GENERIC_RELOC_VANILLA 0 __text
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|