[llvm] Add --offoading option to llvm-readobj (PR #143342)
    James Henderson via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun  9 01:43:10 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 > %t.out 
+# RUN: FileCheck %s --input-file=%t.out -DFILE_NAME=%t.elf
----------------
jh7370 wrote:
```suggestion
# RUN: llvm-readobj --offloading %t.elf  | \
# RUN:   FileCheck %s --input-file=%t.out -DFILE_NAME=%t.elf
```
This is the idiomatic way of writing this.
https://github.com/llvm/llvm-project/pull/143342
    
    
More information about the llvm-commits
mailing list