[llvm] r203337 - DebugInfo: further improvements to test following up on r203329
Adrian Prantl
aprantl at apple.com
Fri Mar 7 18:55:03 PST 2014
On Mar 7, 2014, at 6:45 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Author: dblaikie
> Date: Fri Mar 7 20:45:53 2014
> New Revision: 203337
>
> URL: http://llvm.org/viewvc/llvm-project?rev=203337&view=rev
> Log:
> DebugInfo: further improvements to test following up on r203329
>
> Modified:
> llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll
>
> Modified: llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll?rev=203337&r1=203336&r2=203337&view=diff
> ==============================================================================
> --- llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll (original)
> +++ llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll Fri Mar 7 20:45:53 2014
> @@ -1,14 +1,14 @@
> -; RUN: llc < %s | FileCheck %s
> -; RUN: llc < %s -regalloc=basic | FileCheck %s
> +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-dump=info - | FileCheck %s
> +; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -debug-dump=info - | FileCheck %s
> target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
> target triple = "x86_64-apple-darwin10.0.0"
>
> ; Check debug info for variable z_s
> -;CHECK: .long Lset18
> -;CHECK-NEXT: ## DW_AT_decl_file
> -;CHECK-NEXT: ## DW_AT_decl_line
> -;CHECK-NEXT: ## DW_AT_type
> -;CHECK-NEXT: ## DW_AT_location
> +; CHECK: DW_TAG_subprogram
> +; CHECK: DW_TAG_subprogram
> +; CHECK: DW_TAG_variable
> +; CHECK: DW_TAG_variable
> +; CHECK-NEXT: DW_AT_name {{.*}} "z_s"
Thanks! I think it should also test for the existence of a DW_AT_type/location.
-- adrian
More information about the llvm-commits
mailing list