1 # RUN: dsymutil -f -o %t --verify -oso-prepend-path=%p/../Inputs -y %s
2 # RUN: llvm-dwarfdump %t | FileCheck %s
4 # RUN: dsymutil --linker llvm -f -o %t --verify -oso-prepend-path=%p/../Inputs -y %s
5 # RUN: llvm-dwarfdump %t | FileCheck %s
8 triple: 'x86_64-apple-darwin'
10 - filename: op-convert.macho.x86_64
12 - { sym: _foo, objAddr: 0x0, binAddr: 0x1000, size: 0x4 }
16 CHECK: DW_TAG_base_type
17 CHECK-NEXT: DW_AT_name ("DW_ATE_signed_8")
18 CHECK-NEXT: DW_AT_encoding (DW_ATE_signed)
19 CHECK-NEXT: DW_AT_byte_size (0x01)
21 CHECK: DW_TAG_base_type
22 CHECK-NEXT: DW_AT_name ("DW_ATE_signed_32")
23 CHECK-NEXT: DW_AT_encoding (DW_ATE_signed)
24 CHECK-NEXT: DW_AT_byte_size (0x04)
26 CHECK: DW_TAG_variable
27 CHECK-NEXT: DW_AT_location (
28 CHECK-NEXT: [0x0000000000001000, 0x0000000000001002): DW_OP_breg5 RDI+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_convert (0x0000002a) "DW_ATE_signed_8", DW_OP_convert (0x00000031) "DW_ATE_signed_32", DW_OP_stack_value
29 CHECK-NEXT: [0x0000000000001002, 0x0000000000001003): DW_OP_breg0 RAX+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_convert (0x0000002a) "DW_ATE_signed_8", DW_OP_convert (0x00000031) "DW_ATE_signed_32", DW_OP_stack_value)
30 CHECK-NEXT: DW_AT_name ("y")
32 CHECK: DW_TAG_variable
33 CHECK-NEXT: DW_AT_location (DW_OP_constu 0x33, DW_OP_convert 0x0, DW_OP_stack_value)
34 CHECK-NEXT: DW_AT_name ("d")
36 CHECK: DW_TAG_variable
37 CHECK-NEXT: DW_AT_location (DW_OP_constu 0x2a, DW_OP_convert (0x00000031) "DW_ATE_signed_32", DW_OP_stack_value)
38 CHECK-NEXT: DW_AT_name ("c")