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 }
15 CHECK: DW_TAG_compile_unit
16 CHECK: DW_AT_name ("dbg.c")
18 CHECK:0x[[ADDR1:[0-9a-f]+]]: DW_TAG_base_type
19 CHECK-NEXT: DW_AT_name ("DW_ATE_signed_8")
20 CHECK-NEXT: DW_AT_encoding (DW_ATE_signed)
21 CHECK-NEXT: DW_AT_byte_size (0x01)
23 CHECK:0x[[ADDR2:[0-9a-f]+]]: DW_TAG_base_type
24 CHECK-NEXT: DW_AT_name ("DW_ATE_signed_32")
25 CHECK-NEXT: DW_AT_encoding (DW_ATE_signed)
26 CHECK-NEXT: DW_AT_byte_size (0x04)
28 CHECK: DW_TAG_variable
29 CHECK-NEXT: DW_AT_location (
30 CHECK-NEXT: [0x0000000000001000, 0x0000000000001002): DW_OP_breg5 RDI+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_convert (0x[[ADDR1]]) "DW_ATE_signed_8", DW_OP_convert (0x[[ADDR2]]) "DW_ATE_signed_32", DW_OP_stack_value
31 CHECK-NEXT: [0x0000000000001002, 0x0000000000001003): DW_OP_breg0 RAX+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_convert (0x[[ADDR1]]) "DW_ATE_signed_8", DW_OP_convert (0x[[ADDR2]]) "DW_ATE_signed_32", DW_OP_stack_value)
32 CHECK-NEXT: DW_AT_name ("y")
34 CHECK: DW_TAG_variable
35 CHECK-NEXT: DW_AT_location (DW_OP_constu 0x33, DW_OP_convert 0x0, DW_OP_stack_value)
36 CHECK-NEXT: DW_AT_name ("d")
38 CHECK: DW_TAG_variable
39 CHECK-NEXT: DW_AT_location (DW_OP_constu 0x2a, DW_OP_convert (0x[[ADDR2]]) "DW_ATE_signed_32", DW_OP_stack_value)
40 CHECK-NEXT: DW_AT_name ("c")