]> granicus.if.org Git - llvm/commitdiff
[debug-info] Make a couple of tests more robust.
authorPaul Robinson <paul.robinson@sony.com>
Thu, 27 Jun 2019 15:53:07 +0000 (15:53 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Thu, 27 Jun 2019 15:53:07 +0000 (15:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364556 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/machinesink-merge-debuginfo.ll
test/CodeGen/X86/machinesink-null-debuginfo.ll

index f22d6a8f5aa4d97d33ea6182088b7c844af383d2..8775154d4873a7ed9b48183684737ce19331ae99 100644 (file)
@@ -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]
index 26edcdcde549207686cd2e87ebeec64a37d1b7bb..bb63d6f8ccd87f9e0e8413b300817d4380e87120 100644 (file)
@@ -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
 }