This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] MSA vector generic and builtin fadd, fsub, fmul, fdiv
ClosedPublic

Authored by Petar.Avramovic on Oct 23 2019, 6:32 AM.

Details

Summary

Select vector G_FADD, G_FSUB, G_FMUL and G_FDIV for MIPS32 with MSA. We
have to set bank for vector operands to fprb and selectImpl will do the
rest. builtin_msa_fadd_<format>, builtin_msa_fsub_<format>,
builtin_msa_fmul_<format> and builtin_msa_fdiv_<format> will be
transformed into G_FADD, G_FSUB, G_FMUL and G_FDIV in legalizeIntrinsic
respectively and selected in the same way.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 23 2019, 6:32 AM
This revision is now accepted and ready to land.Oct 23 2019, 8:54 AM
This revision was automatically updated to reflect the committed changes.