diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-07-31 20:48:52 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-07-31 20:48:52 +0000 |
commit | 56619fa7e9fbf5b33ef7578c55420598e453f29b (patch) | |
tree | 636de1a7a3018938da1d76ab869791678bde693c /llvm/test/DebugInfo/X86/debug-loc-asan.ll | |
parent | 8867b216dc9635a922c0fe0766c76f60c2266c60 (diff) | |
download | bcm5719-llvm-56619fa7e9fbf5b33ef7578c55420598e453f29b.tar.gz bcm5719-llvm-56619fa7e9fbf5b33ef7578c55420598e453f29b.zip |
Debug Info: Also check the DWARF output in assembler-only test cases
This will prevent me from introducing a regression in my next commit.
llvm-svn: 309623
Diffstat (limited to 'llvm/test/DebugInfo/X86/debug-loc-asan.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/debug-loc-asan.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/debug-loc-asan.ll b/llvm/test/DebugInfo/X86/debug-loc-asan.ll index 8f798094dff..ece93b9e89f 100644 --- a/llvm/test/DebugInfo/X86/debug-loc-asan.ll +++ b/llvm/test/DebugInfo/X86/debug-loc-asan.ll @@ -1,4 +1,6 @@ ; RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s +; RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -filetype=obj < %s \ +; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF ; Verify that we have correct debug info for local variables in code ; instrumented with AddressSanitizer. @@ -28,6 +30,8 @@ ; CHECK: .quad .Lfunc_begin0-.Lfunc_begin0 ; CHECK-NEXT: .quad [[START_LABEL]]-.Lfunc_begin0 ; CHECK: DW_OP_breg5 +; DWARF: Location description: 75 00 06 +; DW_OP_breg5+0 DW_OP_deref ; Then it's addressed via %rsp: ; CHECK: .quad [[START_LABEL]]-.Lfunc_begin0 @@ -35,6 +39,8 @@ ; CHECK: DW_OP_breg7 ; CHECK-NEXT: [[OFFSET]] ; CHECK: DW_OP_deref +; DWARF: Location description: {{77 .. 06 06}} +; DW_OP_breg7+OFFSET DW_OP_deref DW_OP_deref ; ModuleID = 'test.cc' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |