[llvm] [llvm-dwarfdump] Decode the virtual register names from the dwarf register numbers (PR #192353)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 02:27:35 PDT 2026


================
@@ -0,0 +1,82 @@
+; Test checks if llvm-dwarfdump prints the correct PTX virtual register name strings
+; (e.g. %rd1) instead of a hex encoding in DW_OP_regx.
+
+; File t.cubin is generated using the following steps.
+; llc < %s -o t.ptx
+; ptxas t.ptx -o t.cubin
+
+; RUN: llc < %s -mtriple=nvptx64 | FileCheck %s --check-prefix PTX
+; prebuilt debug ptx-register-manes.cubin must be kept next to this file.
+; RUN: llvm-dwarfdump %S/ptx-register-names.cubin | FileCheck %s --check-prefix DWARF
+
+; PTX: .debug_info
----------------
Michael137 wrote:

Any reason to check the assembly here in a dwarfdump test?

https://github.com/llvm/llvm-project/pull/192353


More information about the llvm-commits mailing list