<div dir="ltr">Which triple are you targeting. Whether or not -mcpu does anything is specific to that.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 28, 2019 at 10:17 AM David Greene via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.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">When I pass -mcpu=<something> to clang, I get this:<br>
<br>
clang-9: warning: argument unused during compilation: '-mcpu=<something>' [-Wunused-command-line-argume nt]<br>
<br>
Worse, I do not get code generated for <something> but rather (I think)<br>
for whatever the host architecture is.<br>
<br>
Is this expected behavior? I know I can use -mtune and -march to<br>
control things but I expected -mcpu to behave like it does in gcc, where<br>
it implies -mtune and -march. I certainly did not expect it to be<br>
completely ignored.<br>
<br>
Thanks for any help!<br>
<br>
-David<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>