<div dir="ltr">Except, of course, now you're testing the assembler and other tools in an attempt to just test some linking :)<div><br></div><div>That said, I'm ok either way - but this seems like a deviation from normal without a compelling argument other than the "why have yaml2obj at all?" :)</div><div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 11, 2020 at 5:18 PM Fangrui Song via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">MaskRay added a subscriber: echristo.<br>
MaskRay added a comment.<br>
<br>
> @echristo on llvm-commits: Would this be better off as a yaml2obj file as input? It would remove the assembler checks and even the dyld checks.<br>
<br>
In lld/ELF, I find that yaml2obj tests tend to be overly complex. They are occasionally used to synthesize invalid input which can't be generated by an assembler (llvm-mc).<br>
Other than that, they tend to be quite cumbersome. For an example, to represent a jump target which can be relocated, a YAML file needs several lines to represent the text section,<br>
followed by some raw bytes (like using `.inst` directives in assembly), then another relocation section with a relocation record. These add up to tens of lines.<br>
<br>
On the contrary, in assembly, one can achieve that with just one line.<br>
<br>
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D79697/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D79697/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D79697" rel="noreferrer" target="_blank">https://reviews.llvm.org/D79697</a><br>
<br>
<br>
<br>
</blockquote></div>