Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / dsymutil / X86 / op-convert.test
blob9960d1996496d65133f23564365216e2ee7a94eb
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
7 ---
8 triple:          'x86_64-apple-darwin'
9 objects:
10   - filename: op-convert.macho.x86_64
11     symbols:
12       - { sym: _foo, objAddr: 0x0, binAddr: 0x1000, size: 0x4 }
13 ...
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")