From: Paul Robinson Date: Thu, 27 Jun 2019 15:53:07 +0000 (+0000) Subject: [debug-info] Make a couple of tests more robust. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a7bae43b0be569acaaf0036f10503043ac0630b;p=llvm [debug-info] Make a couple of tests more robust. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364556 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/machinesink-merge-debuginfo.ll b/test/CodeGen/X86/machinesink-merge-debuginfo.ll index f22d6a8f5aa..8775154d487 100644 --- a/test/CodeGen/X86/machinesink-merge-debuginfo.ll +++ b/test/CodeGen/X86/machinesink-merge-debuginfo.ll @@ -19,6 +19,9 @@ target triple = "x86_64-unknown-linux-gnu" ; ; return ret; ; } +; CHECK: fdiv {{.*}} !dbg [[NO:![0-9]+]] +; CHECK: fadd {{.*}} !dbg [[YES:![0-9]+]] +; CHECK: fdiv {{.*}} !dbg [[TAG:![0-9]+]] ; Function Attrs: nounwind readnone uwtable define double @_Z3fooddb(double %x, double %y, i1 zeroext %c) local_unnamed_addr !dbg !7 { @@ -32,10 +35,11 @@ first: %e = fadd double %a, 1.000000e+00 br label %final second: -; CHECK-NOT: debug-location !17 -; CHECK: debug-location !18 -; CHECK-NOT: debug-location !17 %f = fadd double %b, 1.000000e+00, !dbg !18 + +; CHECK-NOT: debug-location [[NO]] +; CHECK: debug-location [[YES]] +; CHECK-NOT: debug-location [[NO]] br label %final final: %cond = phi double [%e, %first], [%f, %second] @@ -58,8 +62,8 @@ first: br label %final second: %f = fadd double %b, 1.000000e+00, !dbg !25 -; CHECK: debug-location !25 -; CHECK-NEXT: debug-location !25 +; CHECK: debug-location [[TAG]] +; CHECK-NEXT: debug-location [[TAG]] br label %final final: %cond = phi double [%e, %first], [%f, %second] diff --git a/test/CodeGen/X86/machinesink-null-debuginfo.ll b/test/CodeGen/X86/machinesink-null-debuginfo.ll index 26edcdcde54..bb63d6f8ccd 100644 --- a/test/CodeGen/X86/machinesink-null-debuginfo.ll +++ b/test/CodeGen/X86/machinesink-null-debuginfo.ll @@ -11,9 +11,10 @@ define double @_Z3fooddb(double %x, double %y, i1 zeroext %c) local_unnamed_addr tail call void @llvm.dbg.value(metadata double %y, metadata !14, metadata !DIExpression()), !dbg !17 tail call void @llvm.dbg.value(metadata i1 %c, metadata !15, metadata !DIExpression()), !dbg !18 %a = fdiv double %x, 3.000000e+00 +; CHECK: fdiv {{.*}} !dbg [[NO:![0-9]+]] %b = fdiv double %y, 5.000000e+00, !dbg !19 %cond = select i1 %c, double %a, double %b -; CHECK-NOT: debug-location !19 +; CHECK-NOT: debug-location [[NO]] ret double %cond, !dbg !20 }