<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 3:22 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 comment.<br>
<br>
In D84519#2176909 <<a href="https://reviews.llvm.org/D84519#2176909" rel="noreferrer" target="_blank">https://reviews.llvm.org/D84519#2176909</a>>, @scott.linder wrote:<br>
<br>
> In D84519#2174866 <<a href="https://reviews.llvm.org/D84519#2174866" rel="noreferrer" target="_blank">https://reviews.llvm.org/D84519#2174866</a>>, @MaskRay wrote:<br>
><br>
> > Can we step back and think whether precise CPU selection is really necessary? For example, PowerPC has the needs for different ISA levels but it simply uses -mcpu=future.<br>
><br>
><br>
> I am a bit lost on what you mean; is there a significant cost to providing precise CPU selection? It doesn't make sense to require the user to e.g. run the dumper to inspect the binary in order to come up with the command-line to run the dumper in order to inspect the binary.<br>
<br>
<br>
-mcpu=pwr10 decodes more instructions than -mcpu=pwr9.<br>
-mcpu=pwr9 decodes more instructions than -mcpu=pwr8.<br>
<br>
I think GNU objdump just decodes all instructions it recognizes, not expecting a -mcpu option. It behaves as if the default recognized ISA level includes everything.<br>
<br>
<br></blockquote><div><br></div><div>This works as long as there aren't conflicting changes per isa/cpu/etc which can happen :)</div><div><br></div><div>-eric</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D84519/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D84519/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D84519" rel="noreferrer" target="_blank">https://reviews.llvm.org/D84519</a><br>
<br>
<br>
<br>
</blockquote></div></div>