[llvm] 925ec95 - [llvm][DebugInfo][test] dwarf-asm-multiple-sections.s: refine FileCheck checks
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 02:05:37 PST 2026
Author: Michael Buch
Date: 2026-03-02T10:04:42Z
New Revision: 925ec952ddd88f51fe022c5caeb47c6bbdca6c6f
URL: https://github.com/llvm/llvm-project/commit/925ec952ddd88f51fe022c5caeb47c6bbdca6c6f
DIFF: https://github.com/llvm/llvm-project/commit/925ec952ddd88f51fe022c5caeb47c6bbdca6c6f.diff
LOG: [llvm][DebugInfo][test] dwarf-asm-multiple-sections.s: refine FileCheck checks
Renames the `DWARF6` check-prefix to `DWARF7` because it's the check we use for `-dwarf-version 7`.
Also adds a check prefix for just `-dwarf-version 5` because we will
diverge DWARFv5 and DWARFv6 CU langauge attribute in https://github.com/llvm/llvm-project/pull/183897.
Added:
Modified:
llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
Removed:
################################################################################
diff --git a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
index 65bdbef3e2a52..f2b7ab858d6e7 100644
--- a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
+++ b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
@@ -4,7 +4,7 @@
// RUN: llvm-objdump -r %t | FileCheck --check-prefixes=RELOC,RELOC56 %s
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 5 -fdebug-compilation-dir=/tmp
-// RUN: llvm-dwarfdump -v %t | FileCheck --check-prefixes=DWARF,DWARF56 -DDWVER=5 %s
+// RUN: llvm-dwarfdump -v %t | FileCheck --check-prefixes=DWARF,DWARF5,DWARF56 -DDWVER=5 %s
// RUN: llvm-dwarfdump --debug-line %t | FileCheck -check-prefix DWARF-DL -check-prefix DWARF-DL-56 -DDWVER=5 -DDWFILE=0 %s
// RUN: llvm-objdump -r %t | FileCheck --check-prefixes=RELOC,RELOC56 %s
@@ -19,7 +19,7 @@
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 2 2>&1 | FileCheck -check-prefix VERSION %s
// RUN: not llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 1 2>&1 | FileCheck -check-prefix DWARF1 %s
-// RUN: not llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 7 2>&1 | FileCheck -check-prefix DWARF6 %s
+// RUN: not llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 7 2>&1 | FileCheck -check-prefix DWARF7 %s
.section .text, "ax"
a:
mov r0, r0
@@ -50,7 +50,8 @@ d:
// DWARF: DW_AT_name DW_FORM_string
// DWARF: DW_AT_comp_dir DW_FORM_string
// DWARF: DW_AT_producer DW_FORM_string
-// DWARF: DW_AT_language DW_FORM_data2
+// DWARF34: DW_AT_language DW_FORM_data2
+// DWARF5: DW_AT_language DW_FORM_data2
// DWARF: .debug_info contents:
// DWARF: 0x{{[0-9a-f]+}}: DW_TAG_compile_unit [1]
@@ -140,4 +141,4 @@ d:
// VERSION: {{.*}} warning: DWARF2 only supports one section per compilation unit
// DWARF1: Dwarf version 1 is not supported.
-// DWARF6: Dwarf version 7 is not supported.
+// DWARF7: Dwarf version 7 is not supported.
More information about the llvm-commits
mailing list