diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/debug-loclists.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/debug-loclists.ll | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/X86/debug-loclists.ll b/llvm/test/CodeGen/X86/debug-loclists.ll index 7746826f30f..ba6eb6a988c 100644 --- a/llvm/test/CodeGen/X86/debug-loclists.ll +++ b/llvm/test/CodeGen/X86/debug-loclists.ll @@ -11,7 +11,7 @@ ; CHECK: DW_TAG_variable ; FIXME: Use DW_FORM_loclistx to reduce relocations ; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x0000001d -; CHECK-NEXT: Addr idx 0 (w/ length 3): DW_OP_consts +5, DW_OP_stack_value) +; CHECK-NEXT: [0x0000000000000000, 0x0000000000000003): DW_OP_consts +5, DW_OP_stack_value) ; CHECK-NEXT: DW_AT_name {{.*}} "x" ; CHECK: DW_TAG_variable @@ -29,17 +29,14 @@ ; CHECK-NEXT: 0x0000000c: ; CHECK-NEXT: DW_LLE_base_addressx (0x0000000000000000) -; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000000, 0x0000000000000003) -; CHECK-NEXT: => [0x0000000000000000, 0x0000000000000003): DW_OP_consts +3, DW_OP_stack_value -; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000003, 0x0000000000000004) -; CHECK-NEXT: => [0x0000000000000003, 0x0000000000000004): DW_OP_consts +4, DW_OP_stack_value +; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000000, 0x0000000000000003): DW_OP_consts +3, DW_OP_stack_value +; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000003, 0x0000000000000004): DW_OP_consts +4, DW_OP_stack_value ; CHECK-NEXT: DW_LLE_end_of_list () ; Show that startx_length can be used when the address range starts at the start of the function. ; CHECK: 0x0000001d: -; CHECK-NEXT: DW_LLE_startx_length (0x0000000000000000, 0x0000000000000003) -; CHECK-NEXT: => Addr idx 0 (w/ length 3): DW_OP_consts +5, DW_OP_stack_value +; CHECK-NEXT: DW_LLE_startx_length (0x0000000000000000, 0x0000000000000003): DW_OP_consts +5, DW_OP_stack_value ; CHECK-NEXT: DW_LLE_end_of_list () ; And use a base address when the range doesn't start at an existing/useful @@ -47,8 +44,7 @@ ; CHECK: 0x00000025: ; CHECK-NEXT: DW_LLE_base_addressx (0x0000000000000000) -; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000003, 0x0000000000000004) -; CHECK-NEXT: => [0x0000000000000003, 0x0000000000000004): DW_OP_reg0 RAX +; CHECK-NEXT: DW_LLE_offset_pair (0x0000000000000003, 0x0000000000000004): DW_OP_reg0 RAX ; CHECK-NEXT: DW_LLE_end_of_list () ; Built with clang -O3 -ffunction-sections from source: |

