[llvm] r189033 - [Debug Info Tests] Update testing cases.
Eric Christopher
echristo at gmail.com
Thu Aug 22 10:19:17 PDT 2013
Looks good. Thanks.
-eric
==============================================================================
> --- llvm/trunk/test/Transforms/LoopVectorize/debugloc.ll (original)
> +++ llvm/trunk/test/Transforms/LoopVectorize/debugloc.ll Thu Aug 22 12:11:18 2013
> @@ -5,17 +5,17 @@ target datalayout = "e-p:64:64:64-i1:8:8
> ; Make sure we are preserving debug info in the vectorized code.
>
> ; CHECK: for.body.lr.ph
> -; CHECK: cmp.zero = icmp eq i64 {{.*}}, 0, !dbg !21
> +; CHECK: cmp.zero = icmp eq i64 {{.*}}, 0, !dbg ![[LOC:[0-9]+]]
> ; CHECK: vector.body
> -; CHECK: index {{.*}}, !dbg !21
> -; CHECK: getelementptr inbounds i32* %a, {{.*}}, !dbg !22
> -; CHECK: load <2 x i32>* {{.*}}, !dbg !22
> -; CHECK: add <2 x i32> {{.*}}, !dbg !22
> -; CHECK: add i64 %index, 2, !dbg !21
> -; CHECK: icmp eq i64 %index.next, %end.idx.rnd.down, !dbg !21
> +; CHECK: index {{.*}}, !dbg ![[LOC]]
> +; CHECK: getelementptr inbounds i32* %a, {{.*}}, !dbg ![[LOC2:[0-9]+]]
> +; CHECK: load <2 x i32>* {{.*}}, !dbg ![[LOC2]]
> +; CHECK: add <2 x i32> {{.*}}, !dbg ![[LOC2]]
> +; CHECK: add i64 %index, 2, !dbg ![[LOC]]
> +; CHECK: icmp eq i64 %index.next, %end.idx.rnd.down, !dbg ![[LOC]]
> ; CHECK: middle.block
> -; CHECK: add <2 x i32> %rdx.vec.exit.phi, %rdx.shuf, !dbg !22
> -; CHECK: extractelement <2 x i32> %bin.rdx, i32 0, !dbg !22
> +; CHECK: add <2 x i32> %rdx.vec.exit.phi, %rdx.shuf, !dbg ![[LOC2]]
> +; CHECK: extractelement <2 x i32> %bin.rdx, i32 0, !dbg ![[LOC2]]
>
> define i32 @f(i32* nocapture %a, i32 %size) #0 {
> entry:
>
> Modified: llvm/trunk/test/Transforms/SLPVectorizer/X86/debug_info.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SLPVectorizer/X86/debug_info.ll?rev=189033&r1=189032&r2=189033&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/SLPVectorizer/X86/debug_info.ll (original)
> +++ llvm/trunk/test/Transforms/SLPVectorizer/X86/debug_info.ll Thu Aug 22 12:11:18 2013
> @@ -13,13 +13,13 @@ target triple = "x86_64-apple-macosx10.7
> ; }
>
> ;CHECK: @depth
> -;CHECK: getelementptr inbounds {{.*}}, !dbg !24
> -;CHECK: bitcast double* {{.*}}, !dbg !24
> -;CHECK: load <2 x double>* {{.*}}, !dbg !24
> -;CHECK: store <2 x double> {{.*}}, !dbg !26
> +;CHECK: getelementptr inbounds {{.*}}, !dbg ![[LOC:[0-9]+]]
> +;CHECK: bitcast double* {{.*}}, !dbg ![[LOC]]
> +;CHECK: load <2 x double>* {{.*}}, !dbg ![[LOC]]
> +;CHECK: store <2 x double> {{.*}}, !dbg ![[LOC2:[0-9]+]]
> ;CHECK: ret
> -;CHECK: !24 = metadata !{i32 4, i32 0,
> -;CHECK: !26 = metadata !{i32 7, i32 0,
> +;CHECK: ![[LOC]] = metadata !{i32 4, i32 0,
> +;CHECK: ![[LOC2]] = metadata !{i32 7, i32 0,
>
> define i32 @depth(double* nocapture %A, i32 %m) #0 {
> entry:
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list