<div dir="ltr"><div>Hi Amara,<br><br></div><div> To fix PR15172, I would like to
introduce emitFPU() for the .fpu directive, so that both AsmPrinter and
AsmParser can share the same code to encode .fpu directive. Besides, I
feel that I can further simplify the logic in ARMAsmPrinter with
emitFPU().<br>
<br></div><div> The function emitFPU() takes the FPU name as an
argument, and translates the .fpu directive into several .eabi_attribute
directives depending on the FPU. For example, the<br><br></div><div> .fpu "neon-fp-armv8"<br>
<br></div><div>will be translated to:<br><br></div><div> .eabi_attribute 10, 7 // Tag_FP_arch<br></div><div> .eabi_attribute 12, 3 // Tag_Advanced_SIMD_arch<br><br></div><div>
In many cases, the AsmPrinter doesn't have to emit the corresponding
.eabi_attribute if the .fpu directive is emitted. The output binaries
generated by arm-linux-gnueabi-as should be identical with or without
those .eabi_attribute directives.<br>
<br> AFAIK, there is only one exception that we should emit
.eabi_attribute for Tag_Advanced_SIMD_arch when the NEON is enabled on
ARMv8 architecture (and FPARMV8 is disabled.)<br><br></div>Sincerely,<br>Logan</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 20, 2013 at 12:19 AM, Amara Emerson <span dir="ltr"><<a href="mailto:amara.emerson@gmail.com" target="_blank">amara.emerson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im"><div class="gmail_extra">> <span style="font-family:arial,sans-serif;font-size:13px">However, since I have changed some of the existing assembly test cases</span></div>
<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">I haven't looked at your patch properly yet, but what's the reason for this?</span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">
<span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">Amara</span></div></font></span></div>
</blockquote></div><br></div>