Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / dsymutil / X86 / op-convert.test
blob15725a0435d4884dfac3e381d8034009d1d247c4
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 ...
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")