[PATCH] D69310: [MIPS GlobalISel] Select MSA vector generic and builtin mul

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 09:04:31 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_MUL for MIPS32 with MSA. We have to set bank
for vector operands to fprb and selectImpl will do the rest.
Manual selection of G_MUL is now done for gprb only.
__builtin_msa_mulv_<format> will be transformed into G_MUL
in legalizeIntrinsic and selected in the same way.


Repository:
  rL LLVM

https://reviews.llvm.org/D69310

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69310.226054.patch
Type: text/x-patch
Size: 28492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191022/17bb4f18/attachment.bin>


More information about the llvm-commits mailing list