[PATCH] Fix ARM encoding constraints for Q register fields and VSTn instructions

Mihail Popa mihail.popa at gmail.com
Mon May 20 06:24:51 PDT 2013


Hi Tim.

As requested, I have split the patch into two and fixed that test.

Regards,
Mihai


On Tue, May 14, 2013 at 1:09 PM, Tim Northover <t.p.northover at gmail.com>wrote:

> Hi Mihail,
>
> Although these are both changes to "fix VSTn disassembly", I think
> they should probably be committed separately.
>
> Both code changes look reasonable to me, but the test
> invalid-VST2b32_UPD-arm.txt is semantically incorrect. The
> disassembler will try to resynchronise the stream after the first
> failure, but it will only skip 1 byte. So the file given won't
> actually test what you think it does. The output of the llvm-mc
> command is:
> <stdin>:11:1: warning: invalid instruction encoding
> 0xb3 0x09 0x03 0xf4
> ^
> <stdin>:11:6: warning: invalid instruction encoding
> 0xb3 0x09 0x03 0xf4
>      ^
>         stmeq   r3, {r0, r1, r10, r12, sp, lr, pc} ^
>         ldmeq   r3!, {r0, r1, r10, r12, sp, lr, pc}
> <stdin>:19:11: warning: invalid instruction encoding
> 0xb3 0x08 0x03 0xf4
>           ^
> <stdin>:19:16: warning: invalid instruction encoding
> 0xb3 0x08 0x03 0xf4
>                ^
>
> where those stmeq and ldmeq instructions come from disassembling
> unintended sequences of bytes and the failures aren't for what you
> think they should be.
>
> Tim.
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130520/78f912c8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-731.vstq.vadd.patch
Type: application/octet-stream
Size: 1335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130520/78f912c8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-731.vstq.vstq.patch
Type: application/octet-stream
Size: 13770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130520/78f912c8/attachment-0001.obj>


More information about the llvm-commits mailing list