[PATCH] D66793: [MVE] VMOVX patterns

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 02:43:03 PDT 2019


dmgreen created this revision.
dmgreen added reviewers: t.p.northover, SjoerdMeijer, simon_tatham, samparker, miyuki, ostannard, efriedma.
Herald added subscribers: hiraditya, javed.absar.
Herald added a project: LLVM.

This adds fp16 VMOVX patterns, using the same patterns as rL362482 <https://reviews.llvm.org/rL362482> with some adjustments for MVE. It allows us to move fp16 registers without going into and out of gprs.

VMOVX is able to move the top bits from a fp16 in a fp reg into the bottom bits of another register, zeroing the rest. This can be used for odd MVE register lanes. The top bits are not read by fp16 instructions, so no move is required there if we are dealing with even lanes.


https://reviews.llvm.org/D66793

Files:
  llvm/lib/Target/ARM/ARMInstrMVE.td
  llvm/test/CodeGen/Thumb2/mve-div-expand.ll
  llvm/test/CodeGen/Thumb2/mve-fmas.ll
  llvm/test/CodeGen/Thumb2/mve-fmath.ll
  llvm/test/CodeGen/Thumb2/mve-fp-negabs.ll
  llvm/test/CodeGen/Thumb2/mve-frint.ll
  llvm/test/CodeGen/Thumb2/mve-minmax.ll
  llvm/test/CodeGen/Thumb2/mve-shuffle.ll
  llvm/test/CodeGen/Thumb2/mve-simple-arith.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpf.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpfr.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpfz.ll
  llvm/test/CodeGen/Thumb2/mve-vcvt.ll
  llvm/test/CodeGen/Thumb2/mve-vmaxv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66793.217332.patch
Type: text/x-patch
Size: 384893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/0cd6ed25/attachment-0001.bin>


More information about the llvm-commits mailing list