[llvm] Add --offoading option to llvm-readobj (PR #143342)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 01:56:04 PDT 2025


================
@@ -0,0 +1,42 @@
+## Test that --offloading with a fatbin works correctly
+# REQUIRES: target={{x86_64-.*-linux.*}}
+# REQUIRES: amdgpu-registered-target
+
+# RUN: yaml2obj %s -o %t.elf
+# RUN: llvm-readobj --offloading %t.elf | \ 
+# RUN: FileCheck %s --input-file=%t.out -DFILE_NAME=%t.elf
----------------
jh7370 wrote:

You missed the spaces in my previous suggestion. These help show that the FileCheck line is a continuation of the previous line. Also, I forgot to remove `--input-file` since that's not needed now that you're passing the input from llvm-readobj directly into FileCheck.
```suggestion
# RUN:   FileCheck %s -DFILE_NAME=%t.elf
```

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


More information about the llvm-commits mailing list