[llvm] 1d05c52 - Fix: [DebugInfo] Add function to test debug values for equivalence

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 09:55:24 PST 2022


Author: Stephen Tozer
Date: 2022-12-19T17:55:15Z
New Revision: 1d05c525db4f8d0318315f2380f359143246e01a

URL: https://github.com/llvm/llvm-project/commit/1d05c525db4f8d0318315f2380f359143246e01a
DIFF: https://github.com/llvm/llvm-project/commit/1d05c525db4f8d0318315f2380f359143246e01a.diff

LOG: Fix: [DebugInfo] Add function to test debug values for equivalence

Fixes a test in 6d169089 which had unspecified platform dependencies
and platform-dependent output.

Added: 
    llvm/test/DebugInfo/X86/merge-equivalent-ranges.ll

Modified: 
    

Removed: 
    llvm/test/DebugInfo/Generic/merge-equivalent-ranges.ll


################################################################################
diff  --git a/llvm/test/DebugInfo/Generic/merge-equivalent-ranges.ll b/llvm/test/DebugInfo/X86/merge-equivalent-ranges.ll
similarity index 97%
rename from llvm/test/DebugInfo/Generic/merge-equivalent-ranges.ll
rename to llvm/test/DebugInfo/X86/merge-equivalent-ranges.ll
index 4dbb6ee313d51..40003b503c49a 100644
--- a/llvm/test/DebugInfo/Generic/merge-equivalent-ranges.ll
+++ b/llvm/test/DebugInfo/X86/merge-equivalent-ranges.ll
@@ -10,13 +10,13 @@
 ;; Checks that we can merge an indirect debug value with an equivalent direct
 ;; debug value that uses DW_OP_deref.
 ; CHECK: DW_AT_location
-; CHECK-SAME: (DW_OP_fbreg +8)
+; CHECK-SAME: (DW_OP_fbreg +{{[0-9]+}})
 ; CHECK-NEXT: DW_AT_name    ("Var1")
 
 ;; Checks that we can merge a non-variadic debug value with an equivalent
 ;; variadic debug value.
 ; CHECK: DW_AT_location
-; CHECK-SAME: (DW_OP_fbreg +8, DW_OP_deref, DW_OP_stack_value)
+; CHECK-SAME: (DW_OP_fbreg +{{[0-9]+}}, DW_OP_deref, DW_OP_stack_value)
 ; CHECK-NEXT: DW_AT_name    ("Var2")
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"


        


More information about the llvm-commits mailing list