[llvm] [AMDGPU] Update compute program resource registers for GFX12 (PR #75911)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 03:57:42 PST 2023
================
@@ -0,0 +1,54 @@
+;; Test disassembly for gfx12 kernel descriptor.
+
+; RUN: rm -rf %t && split-file %s %t && cd %t
+
+;--- 1.s
+; RUN: llvm-mc --triple=amdgcn-amd-amdhsa -filetype=obj -mcpu=gfx1200 < 1.s > 1.o
+; RUN: llvm-objdump --disassemble-symbols=kernel.kd 1.o | tail -n +7 | tee 1-disasm.s | FileCheck 1.s
----------------
jayfoad wrote:
It's using `tail` to chop some junk off the front of the output of `llvm-objdump --disassemble-symbols` so it can feed it back into `llvm-mc`. I could use `sed` instead if that seems more portable.
https://github.com/llvm/llvm-project/pull/75911
More information about the llvm-commits
mailing list