<div dir="ltr">Tim,<div><br></div><div>thanks for the review. See attached updated patch. It adds APSR_NZCV to reserved and introduces two new disassembler tests.</div><div><br></div><div>Regards,</div><div style>Mihai</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 2:00 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mihail,<br>
<div class="im"><br>
> The purpose of the patch is to fix the syntax of ARM mrc and mrc2<br>
> instructions when they are used to write to the APSR. In this case, the<br>
> destination operand should be APSR_nzcv, and the encoding of the target<br>
> should be 0b1111 (same as for PC).<br>
<br>
</div>Thanks for looking at this.<br>
<br>
The changes look reasonable to me, though I'd probably suggest setting<br>
APSR_NZCV to reserved in ARMBaseRegisterInfo.cpp. Your AltOrders<br>
*should* prevent the register allocator doing anything stupid anyway,<br>
but just in case...<br>
<br>
Also, some of disassembly tests would be good. I don't think the<br>
DecodeGPRWithAPSR function is exercised by the assembly tests you<br>
added and none of the existing tests seem to use the 0b1111 encoding.<br>
<br>
Cheers.<br>
<br>
Tim.<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>