mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
a12e184ad8
This commit accomplish two goals: 1) it's a step forward to deprecate macho-dump, now less than 40 tests rely on it. 2) It tests all the MachO specific features introduced in llvm-readobj in the following commits: r246789, r246665, r246474. While the conversion is mostly mechanical (I double-checked all the tests output one by one, but still), a post-commit review is greatly appreciated. llvm-svn: 246904
47 lines
1.3 KiB
ArmAsm
47 lines
1.3 KiB
ArmAsm
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
|
|
|
|
xorl %eax,%eax
|
|
|
|
.globl _a
|
|
_a:
|
|
xorl %eax,%eax
|
|
_b:
|
|
_d:
|
|
xorl %eax,%eax
|
|
L0:
|
|
xorl %eax,%eax
|
|
L1:
|
|
|
|
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
|
|
|
|
.subsections_via_symbols
|
|
|
|
// 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: ]
|