Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / dsymutil / X86 / accelerator.test
blobae7d88479b1e7745cedb8d11a9c78758d741c22b
1 RUN: dsymutil -accelerator=Dwarf -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 -o %t.dwarf.dSYM
2 RUN: dsymutil -accelerator=Apple -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 -o %t.apple.dSYM
3 RUN: dsymutil -accelerator=None -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 -o %t.none.dSYM
5 RUN: llvm-dwarfdump -verify %t.dwarf.dSYM
6 RUN: llvm-dwarfdump -verify %t.apple.dSYM
7 RUN: llvm-dwarfdump -verify %t.none.dSYM
9 RUN: llvm-dwarfdump -debug-names %t.dwarf.dSYM | FileCheck %s -check-prefixes=NAMES,DWARF
10 RUN: llvm-dwarfdump -apple-names -apple-namespaces -apple-types %t.apple.dSYM | FileCheck %s -check-prefixes=NAMES,APPLE
11 RUN: llvm-dwarfdump -a %t.none.dSYM | FileCheck %s -check-prefixes=NONE
13 RUN: dsymutil -update -accelerator=Dwarf %t.apple.dSYM
14 RUN: dsymutil -update -accelerator=Apple %t.dwarf.dSYM
15 RUN: dsymutil -update -accelerator=None %t.none.dSYM
17 RUN: llvm-dwarfdump -verify %t.dwarf.dSYM
18 RUN: llvm-dwarfdump -verify %t.apple.dSYM
19 RUN: llvm-dwarfdump -verify %t.none.dSYM
21 RUN: llvm-dwarfdump -debug-names %t.apple.dSYM | FileCheck %s -check-prefixes=NAMES,DWARF
22 RUN: llvm-dwarfdump -apple-names -apple-namespaces -apple-types %t.dwarf.dSYM | FileCheck %s -check-prefixes=NAMES,APPLE
23 RUN: llvm-dwarfdump -a %t.none.dSYM | FileCheck %s -check-prefixes=NONE
25 DWARF: .debug_names contents:
26 DWARF: Compilation Unit offsets [
27 DWARF:   CU[0]
28 DWARF:   CU[1]
29 DWARF:   CU[2]
30 DWARF: ]
32 APPLE-DAG: .apple_names contents:
33 APPLE-DAG: .apple_types contents:
34 APPLE-DAG: .apple_namespaces contents:
36 NAMES-DAG: "private_int"
37 NAMES-DAG: "baz"
38 NAMES-DAG: "int"
39 NAMES-DAG: "bar"
40 NAMES-DAG: "foo"
41 NAMES-DAG: "inc"
42 NAMES-DAG: "val"
43 NAMES-DAG: "main"
44 NAMES-DAG: "char"
46 NONE-NOT: .debug_names
47 NONE-NOT: .apple_names
48 NONE-NOT: .apple_types
49 NONE-NOT: .apple_namespaces
50 NONE-NOT: .apple_objc
51 NONE-NOT: .debug_pubnames
52 NONE-NOT: .debug_types
53 NONE-NOT: .debug_gnu_pubnames
54 NONE-NOT: .debug_gnu_types