[PATH] Correct treatment for ARM-Thumb2 hint encodings
Quentin Colombet
qcolombet at apple.com
Fri Apr 26 10:55:23 PDT 2013
Committed r180617.
-Quentin
On Apr 26, 2013, at 3:28 AM, Mihail Popa <mihail.popa at gmail.com> wrote:
> Quentin,
>
> I have updated the tests. Please commit this for me.
> Don't forget to svn add test/MC/Disassembler/ARM/invalid-hint-arm.txt test/MC/Disassembler/ARM/invalid-hint-thumb.txt test/MC/ARM/invalid-hint-thumb.s test/MC/ARM/invalid-hint-arm.s
>
> Thanks,
> Mihai
>
>
> On Thu, Apr 25, 2013 at 6:12 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> Hi Mihail,
>
> You shouldn’t set the -disassemble option for your .s tests.
> Other than that, LGTM.
>
> Thanks,
>
> -Quentin
>
> On Apr 25, 2013, at 7:21 AM, Mihail Popa <Mihail.Popa at arm.com> wrote:
>
>> Hi.
>>
>> This is the long delayed follow up patch to the similar issue encountered with ARM encodings. The issue is slightly more complex because the nop-compatible hint space for Thumb actually overlaps the encoding space of the CPS instruction. In actuality, hints can be defined as CPS instructions where imod and M bits are all nil.
>>
>> Because tablegen does not support != operator in let expressions, the only tablegen-only solution would be to define multiple instructions, one for each imod setting. This would pollute the td file and bring no real value. Instead I propose that we should handle decoding of permitted nop-compatible hints (i.e. nop, yield, wfi, wfe, sev) in DecodeT2CPSInstruction.
>>
>> The patch also adds a proper diagnostic message for Imm0_4 and updates all tests. Please note that this patch contains new files! The person who will commit must to a svn add for these first!.
>>
>> Thanks,
>> Mihai<LLVM-722.thumb_hints.patch>_______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
> <LLVM-722.thumb_hints.patch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/34e9abfa/attachment.html>
More information about the llvm-commits
mailing list