diff options
Diffstat (limited to 'llvm/test/DebugInfo/X86')
-rw-r--r-- | llvm/test/DebugInfo/X86/debug-loc-asan.ll | 10 | ||||
-rw-r--r-- | llvm/test/DebugInfo/X86/prologue-stack.ll | 2 |
2 files changed, 7 insertions, 5 deletions
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 |