[llvm] r364556 - [debug-info] Make a couple of tests more robust.
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 08:53:08 PDT 2019
Author: probinson
Date: Thu Jun 27 08:53:07 2019
New Revision: 364556
URL: http://llvm.org/viewvc/llvm-project?rev=364556&view=rev
Log:
[debug-info] Make a couple of tests more robust.
Modified:
llvm/trunk/test/CodeGen/X86/machinesink-merge-debuginfo.ll
llvm/trunk/test/CodeGen/X86/machinesink-null-debuginfo.ll
Modified: llvm/trunk/test/CodeGen/X86/machinesink-merge-debuginfo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/machinesink-merge-debuginfo.ll?rev=364556&r1=364555&r2=364556&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/machinesink-merge-debuginfo.ll (original)
+++ llvm/trunk/test/CodeGen/X86/machinesink-merge-debuginfo.ll Thu Jun 27 08:53:07 2019
@@ -19,6 +19,9 @@ target triple = "x86_64-unknown-linux-gn
;
; 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]
Modified: llvm/trunk/test/CodeGen/X86/machinesink-null-debuginfo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/machinesink-null-debuginfo.ll?rev=364556&r1=364555&r2=364556&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/machinesink-null-debuginfo.ll (original)
+++ llvm/trunk/test/CodeGen/X86/machinesink-null-debuginfo.ll Thu Jun 27 08:53:07 2019
@@ -11,9 +11,10 @@ define double @_Z3fooddb(double %x, doub
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
}
More information about the llvm-commits
mailing list