diff options
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r-- | llvm/test/DebugInfo/COFF/lines-bb-start.ll | 1 | ||||
-rw-r--r-- | llvm/test/DebugInfo/Mips/delay-slot.ll | 8 | ||||
-rw-r--r-- | llvm/test/DebugInfo/X86/debug-loc-asan.ll | 10 | ||||
-rw-r--r-- | llvm/test/DebugInfo/X86/prologue-stack.ll | 2 |
4 files changed, 11 insertions, 10 deletions
diff --git a/llvm/test/DebugInfo/COFF/lines-bb-start.ll b/llvm/test/DebugInfo/COFF/lines-bb-start.ll index 8048103e3e5..1f6f2fc6f7e 100644 --- a/llvm/test/DebugInfo/COFF/lines-bb-start.ll +++ b/llvm/test/DebugInfo/COFF/lines-bb-start.ll @@ -92,6 +92,7 @@ return: ; preds = %if.end, %if.then ; CHECK: LBB2_{{.*}}: # %if.end ; CHECK-NEXT: .cv_loc {{.*}} # t.c:5:3 ; CHECK: leal 4(%esp), %[[reg:[^ ]*]] +; CHECK: #DEBUG_VALUE: lea_dbg_value:v <- [DW_OP_deref] $[[reg]] ; CHECK: movl %[[reg]], (%esp) ; CHECK: calll _use_i32 diff --git a/llvm/test/DebugInfo/Mips/delay-slot.ll b/llvm/test/DebugInfo/Mips/delay-slot.ll index 278f9d3efe9..a7b787d3e69 100644 --- a/llvm/test/DebugInfo/Mips/delay-slot.ll +++ b/llvm/test/DebugInfo/Mips/delay-slot.ll @@ -13,11 +13,9 @@ ; CHECK: Address Line Column File ISA Discriminator Flags ; CHECK: ------------------ ------ ------ ------ --- ------------- ------------- ; CHECK: 0x0000000000000000 1 0 1 0 0 is_stmt -; FIXME: The next address probably ought to be 0x0000000000000004 but there's -; a constant initialization before the prologue's end. -; CHECK: 0x0000000000000008 2 0 1 0 0 is_stmt prologue_end -; CHECK: 0x000000000000002c 3 0 1 0 0 is_stmt -; CHECK: 0x000000000000003c 4 0 1 0 0 is_stmt +; CHECK: 0x0000000000000004 2 0 1 0 0 is_stmt prologue_end +; CHECK: 0x0000000000000024 3 0 1 0 0 is_stmt +; CHECK: 0x0000000000000034 4 0 1 0 0 is_stmt ; CHECK: 0x0000000000000048 5 0 1 0 0 is_stmt ; CHECK: 0x0000000000000058 5 0 1 0 0 is_stmt end_sequence diff --git a/llvm/test/DebugInfo/X86/debug-loc-asan.ll b/llvm/test/DebugInfo/X86/debug-loc-asan.ll index 2bdc1762eee..097c2119467 100644 --- a/llvm/test/DebugInfo/X86/debug-loc-asan.ll +++ b/llvm/test/DebugInfo/X86/debug-loc-asan.ll @@ -14,8 +14,8 @@ ; The address of the (potentially now malloc'ed) alloca ends up ; in rdi, after which it is spilled to the stack. We record the ; spill OFFSET on the stack for checking the debug info below. -; CHECK: #DEBUG_VALUE: bar:y <- [DW_OP_deref] [$rdi+0] -; CHECK: movq %rdi, [[OFFSET:[0-9]+]](%rsp) +; CHECK: #DEBUG_VALUE: bar:y <- [DW_OP_deref] [$rcx+0] +; CHECK: movq %rcx, [[OFFSET:[0-9]+]](%rsp) ; CHECK-NEXT: [[START_LABEL:.Ltmp[0-9]+]] ; CHECK-NEXT: #DEBUG_VALUE: bar:y <- [DW_OP_plus_uconst [[OFFSET]], DW_OP_deref, DW_OP_deref] ; This location should be valid until the end of the function. @@ -26,13 +26,13 @@ ; CHECK: .Ldebug_loc{{[0-9]+}}: ; We expect two location ranges for the variable. -; First, its address is stored in %rdi: +; First, its address is stored in %rcx: ; CHECK: .quad .Lfunc_begin0-.Lfunc_begin0 ; CHECK-NEXT: .quad [[START_LABEL]]-.Lfunc_begin0 -; CHECK: DW_OP_breg5 +; CHECK: DW_OP_breg2 ; DWARF: DW_TAG_formal_parameter ; DWARF: DW_AT_location -; DWARF-NEXT: [{{.*}}, {{.*}}): DW_OP_breg5 RDI+0, DW_OP_deref +; DWARF-NEXT: [{{.*}}, {{.*}}): DW_OP_breg2 RCX+0, DW_OP_deref ; Then it's addressed via %rsp: ; CHECK: .quad [[START_LABEL]]-.Lfunc_begin0 diff --git a/llvm/test/DebugInfo/X86/prologue-stack.ll b/llvm/test/DebugInfo/X86/prologue-stack.ll index 1faeaa1275f..1cadd6e3bec 100644 --- a/llvm/test/DebugInfo/X86/prologue-stack.ll +++ b/llvm/test/DebugInfo/X86/prologue-stack.ll @@ -11,6 +11,8 @@ define i32 @isel_line_test2() nounwind uwtable !dbg !5 { ; CHECK: isel_line_test2: ; CHECK: {{subq|leaq}} {{.*}}, %rsp ; CHECK: .loc 1 5 3 prologue_end + ; CHECK: movl $400, %edi + ; CHECK: callq callme entry: %call = call i32 @callme(i32 400), !dbg !10 ret i32 0, !dbg !12 |