• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple arm64-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code | FileCheck %s
2        .text
3_foo:
4.data_region
5        .long 10
6.end_data_region
7.data_region jt32
8        .long 1
9.end_data_region
10.data_region jt16
11        .short 2
12.end_data_region
13.data_region jt8
14        .byte 3
15.end_data_region
16
17// CHECK: File: <stdin>
18// CHECK: Format: Mach-O arm64
19// CHECK: Arch: aarch64
20// CHECK: AddressSize: 64bit
21// CHECK: DataInCode {
22// CHECK:   Data size: 32
23// CHECK:   Data entries [
24// CHECK:     Entry {
25// CHECK:       Index: 0
26// CHECK:       Offset: 0
27// CHECK:       Length: 4
28// CHECK:       Kind: 1
29// CHECK:     }
30// CHECK:     Entry {
31// CHECK:       Index: 1
32// CHECK:       Offset: 4
33// CHECK:       Length: 4
34// CHECK:       Kind: 4
35// CHECK:     }
36// CHECK:     Entry {
37// CHECK:       Index: 2
38// CHECK:       Offset: 8
39// CHECK:       Length: 2
40// CHECK:       Kind: 3
41// CHECK:     }
42// CHECK:     Entry {
43// CHECK:       Index: 3
44// CHECK:       Offset: 10
45// CHECK:       Length: 1
46// CHECK:       Kind: 2
47// CHECK:     }
48// CHECK:   ]
49// CHECK: }
50