|
4 | 4 | # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o %t |
5 | 5 | # RUN: %lldb %t \ |
6 | 6 | # RUN: -o "target variable udata data1 data2 data4 data8 string strp ref4 udata_ptr" \ |
| 7 | +# RUN: -o "target variable --format x data16" \ |
7 | 8 | # RUN: -o exit | FileCheck %s |
8 | 9 |
|
9 | 10 | # CHECK-LABEL: target variable |
|
22 | 23 | # CHECK: (char[7]) ref4 = <empty constant data> |
23 | 24 | ## A variable of pointer type. |
24 | 25 | # CHECK: (unsigned long *) udata_ptr = 0xdeadbeefbaadf00d |
| 26 | +# CHECK: (unsigned __int128) data16 = 0xdeadbeefbaadf00ddeadbeefbaadf00d |
| 27 | + |
25 | 28 |
|
26 | 29 | .section .debug_abbrev,"",@progbits |
27 | 30 | .byte 1 # Abbreviation Code |
|
88 | 91 | var 15, 0x8 # DW_FORM_string |
89 | 92 | var 16, 0xe # DW_FORM_strp |
90 | 93 | var 17, 0x13 # DW_FORM_ref4 |
| 94 | + var 18, 0x1e # DW_FORM_data16 |
91 | 95 | .byte 0 # EOM(3) |
92 | 96 | .section .debug_info,"",@progbits |
93 | 97 | .Lcu_begin0: |
|
119 | 123 | .Lulong_ptr: |
120 | 124 | .byte 2 # Abbrev DW_TAG_pointer_type |
121 | 125 | .long .Lulong-.Lcu_begin0 # DW_AT_type |
| 126 | +.Lu128: |
| 127 | + .byte 6 # Abbrev DW_TAG_base_type |
| 128 | + .asciz "Lu128" # DW_AT_name |
| 129 | + .byte 16 # DW_AT_byte_size |
| 130 | + .byte 7 # DW_AT_encoding |
122 | 131 |
|
123 | 132 | .byte 10 # Abbrev DW_TAG_variable |
124 | 133 | .asciz "udata" # DW_AT_name |
|
165 | 174 | .long .Lulong_ptr-.Lcu_begin0 # DW_AT_type |
166 | 175 | .uleb128 0xdeadbeefbaadf00d # DW_AT_const_value |
167 | 176 |
|
| 177 | + .byte 18 # Abbrev DW_TAG_variable |
| 178 | + .asciz "data16" # DW_AT_name |
| 179 | + .long .Lu128-.Lcu_begin0 # DW_AT_type |
| 180 | + .quad 0xdeadbeefbaadf00d # DW_AT_const_value |
| 181 | + .quad 0xdeadbeefbaadf00d # DW_AT_const_value |
| 182 | + |
168 | 183 | .byte 0 # End Of Children Mark |
169 | 184 | .Ldebug_info_end0: |
170 | 185 |
|
|
0 commit comments