[PATCH] D90245: [AMDGPU] Refactor and extend elf-header-flags-mach tests

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 27 10:10:48 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/test/Object/AMDGPU/elf-header-flags-mach.yaml:1
-# RUN: yaml2obj --docnum=1 %s -o %t.o.1
-# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-R600 %s
-# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-R600 %s
+# RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_R600/' %s | yaml2obj -o %t.o.1
+# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-R600-ALL,ELF-R600-R600 %s
----------------
Is using sed actually portable?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90245/new/

https://reviews.llvm.org/D90245



More information about the llvm-commits mailing list