[PATCH] D64827: [Xtensa 2/10] Add Xtensa ELF definitions.

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 8 05:56:36 PDT 2021


jrtc27 added inline comments.


================
Comment at: llvm/test/Object/obj2yaml.test:550
 
-# RUN: yaml2obj %s -o %t-x86-64
+# RUN: yaml2obj --docnum=1 %s -o %t-x86-64
 # RUN: obj2yaml %t-x86-64 | FileCheck %s --check-prefix ELF-X86-64
----------------
jhenderson wrote:
> jrtc27 wrote:
> > All other architectures put their input in a separate file to avoid this.
> Are you referring to the yaml2obj line or the use of `--docnum`? All other files use pre-canned binaries, which are not ideal, as they are fixed and hard to inspect/understand/update. Using yaml2obj is generally preferable for creating objects at test time.
Oh you're right. Hm. `--docnum=N` for each architecture would start to get a bit silly though... I do wonder why we don't have one .test file for each architecture being tested, then you don't need to play --docnum or Inputs/foo.yaml games (and even for pre-canned binaries it keeps the tests nicely separated rather than having an 800-odd line file).


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

https://reviews.llvm.org/D64827



More information about the llvm-commits mailing list