<div dir="ltr">Agreed, it's on my list of things to do. It requires restricting definitions according to uses, and sometimes inserting copies when use requirements conflict. The tests should then pass MI verification.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 11:46 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seems like a good thing to do no?<br>
<span class="HOEnZb"><font color="#888888"><br>
-eric<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, May 28, 2013 at 11:36 AM, JF Bastien <<a href="mailto:jfb@google.com">jfb@google.com</a>> wrote:<br>
> Add -verify-machineinstrs to the Thumb tests that don't have it in<br>
> test/CodeGen/ARM/fast-isel*.<br>
><br>
><br>
><br>
><br>
><br>
> On Tue, May 28, 2013 at 11:30 AM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>><br>
> wrote:<br>
>><br>
>> LGTM. Testcase for where this showed up?<br>
>><br>
>> -eric<br>
>><br>
>> On Tue, May 28, 2013 at 10:43 AM, JF Bastien <<a href="mailto:jfb@google.com">jfb@google.com</a>> wrote:<br>
>> > Tidy up three places where the register class for ARM and Thumb wasn't<br>
>> > restrictive enough:<br>
>> >  - No PC dest for reg-reg add/orr/sub.<br>
>> >  - No PC dest for shifts.<br>
>> >  - No PC or SP for Thumb2 reg-imm add.<br>
>> ><br>
>> > I encountered this while combining FastISel with -verify-machineinstrs.<br>
>> > These instructions defined registers whose classes weren't restrictive<br>
>> > enough, and the uses failed verification. They're also undefined in the<br>
>> > ISA,<br>
>> > or would produce code that FastISel wouldn't want. This doesn't fix the<br>
>> > register class narrowing issue (where uses should restrict definitions),<br>
>> > and<br>
>> > isn't thorough, but it's a small step in the right direction.<br>
>> ><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>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>