[PATCH] D72023: Change dbg-*-tag-offset tests to use llvm-dwarfdump.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 13:36:32 PST 2020


eugenis updated this revision to Diff 235939.
eugenis added a comment.

tighten the test with CHECK-NOT


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72023/new/

https://reviews.llvm.org/D72023

Files:
  llvm/test/CodeGen/AArch64/dbg-declare-tag-offset.ll
  llvm/test/CodeGen/AArch64/dbg-value-tag-offset.ll


Index: llvm/test/CodeGen/AArch64/dbg-value-tag-offset.ll
===================================================================
--- llvm/test/CodeGen/AArch64/dbg-value-tag-offset.ll
+++ llvm/test/CodeGen/AArch64/dbg-value-tag-offset.ll
@@ -1,17 +1,17 @@
-; RUN: llc -o - %s | FileCheck %s
+; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64-unknown-linux-android24"
 
-; CHECK: .Linfo_string5:
-; CHECK-NEXT: .asciz "y"
-; CHECK: .Linfo_string7:
-; CHECK-NEXT: .asciz "x"
+; CHECK:      DW_TAG_variable
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x80)
+; CHECK-NEXT:   DW_AT_name    ("y")
 
-; CHECK:      .byte   128                     // DW_AT_LLVM_tag_offset
-; CHECK-NEXT: .word   .Linfo_string5          // DW_AT_name
-; CHECK:      .byte   0                       // DW_AT_LLVM_tag_offset
-; CHECK-NEXT: .word   .Linfo_string7          // DW_AT_name
+; CHECK:      DW_TAG_variable
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x00)
+; CHECK-NEXT:   DW_AT_name    ("x")
 
 define dso_local void @f() !dbg !14 {
   %1 = alloca i32, align 4
Index: llvm/test/CodeGen/AArch64/dbg-declare-tag-offset.ll
===================================================================
--- llvm/test/CodeGen/AArch64/dbg-declare-tag-offset.ll
+++ llvm/test/CodeGen/AArch64/dbg-declare-tag-offset.ll
@@ -1,17 +1,16 @@
-; RUN: llc -o - %s | FileCheck %s
+; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s
 
 target triple="aarch64--"
 
-; CHECK: .Linfo_string4:
-; CHECK-NEXT: .asciz "a"
-; CHECK: .Linfo_string6:
-; CHECK-NEXT: .asciz "b"
+; CHECK:      DW_TAG_variable
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x01)
+; CHECK-NEXT:   DW_AT_name    ("a")
 
-; CHECK: .byte 1 // DW_AT_LLVM_tag_offset
-; CHECK: .word .Linfo_string4 // DW_AT_name
-
-; CHECK: .byte 2 // DW_AT_LLVM_tag_offset
-; CHECK: .word .Linfo_string6 // DW_AT_name
+; CHECK:      DW_TAG_variable
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x02)
+; CHECK-NEXT:   DW_AT_name    ("b")
 
 define void @f() !dbg !6 {
 entry:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72023.235939.patch
Type: text/x-patch
Size: 2226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200102/b25fef45/attachment.bin>


More information about the llvm-commits mailing list