[PATCH] D69306: [MIPS GlobalISel] Select MSA vector generic and builtin sub

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 08:09:49 PDT 2019


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, jrtc27, arichardson, rovka, sdardis.
Herald added a project: LLVM.

Select vector G_SUB for MIPS32 with MSA. We have to set bank
for vector operands to fprb and selectImpl will do the rest.
__builtin_msa_subv_<format> will be transformed into G_SUB
in legalizeIntrinsic and selected in the same way.
__builtin_msa_subvi_<format> will be directly selected into
SUBVI_<format> in legalizeIntrinsic.


Repository:
  rL LLVM

https://reviews.llvm.org/D69306

Files:
  lib/Target/Mips/MipsLegalizerInfo.cpp
  lib/Target/Mips/MipsRegisterBankInfo.cpp
  test/CodeGen/Mips/GlobalISel/instruction-select/sub_vec.mir
  test/CodeGen/Mips/GlobalISel/legalizer/sub_vec.mir
  test/CodeGen/Mips/GlobalISel/legalizer/sub_vec_builtin.mir
  test/CodeGen/Mips/GlobalISel/llvm-ir/sub_vec.ll
  test/CodeGen/Mips/GlobalISel/llvm-ir/sub_vec_builtin.ll
  test/CodeGen/Mips/GlobalISel/regbankselect/sub_vec.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69306.226048.patch
Type: text/x-patch
Size: 34699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191022/856c3c4e/attachment.bin>


More information about the llvm-commits mailing list