[PATCH][AArch64] implement aarch64 neon load/store instructions class AdvSIMD (lselem)

Hao Liu Hao.Liu at arm.com
Wed Sep 18 06:31:05 PDT 2013

Hi folks,


Attached are patches to implement aarch64 neon instruction class AdvSIMD
(lselem), which are all structure load/store instructions: ld1/st1, ld2/st2,
ld3/st3, ld4/st4.


(1) The implementation is like ARMv7, and the main change is removing the
code about sub registers. The dag selection phase is implemented directly in
AArch64ISelDAGToDAG not in table.   


(2) As the representation for a vector list has two types:

             {v0.8b - v3.8b}

     {v0.8b, v1.8b, v2.8b, v3.8b}

and both types are correct, I add a function in AArch64AsmParser.cpp to make
it can recognize both types. And the second type is chose as output


Actually, I'm not very familiar with load/store instructions and they are
quite different from other instructions. Although the implementation is like
ARMv7 but AArch64 also has much difference from ARMv7, I'm not sure whether
the implementation is  correct.


Please review this patch.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130918/b07939fa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-simd-load-store-elem.patch
Type: application/octet-stream
Size: 152089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130918/b07939fa/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-simd-load-store-elem.patch
Type: application/octet-stream
Size: 38950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130918/b07939fa/attachment-0001.obj>

More information about the cfe-commits mailing list