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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 00:56:09 PDT 2025


================
@@ -0,0 +1,28 @@
+## Test that --offloading with a fatbin works correctly.
+# REQUIRES: target={{x86_64-.*-linux.*}}
+# REQUIRES: amdgpu-registered-target
+# UNSUPPORTED: system-windows
+
+# RUN: yaml2obj %s -o %t.elf
+# RUN: not llvm-readobj --offloading %t.elf 2>&1 | \ 
+# RUN: FileCheck %s --check-prefix=ERR -DFILE_NAME=%t.elf 
----------------
jh7370 wrote:

```suggestion
# RUN:   FileCheck %s --check-prefix=ERR -DFILE_NAME=%t.elf 
```

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


More information about the llvm-commits mailing list