This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] MSA vector generic and builtin sdiv, srem, udiv, urem
ClosedPublic

Authored by Petar.Avramovic on Oct 23 2019, 4:47 AM.

Details

Summary

Select vector G_SDIV, G_SREM, G_UDIV and G_UREM for MIPS32 with MSA. We
have to set bank for vector operands to fprb and selectImpl will do the
rest. builtin_msa_div_s_<format>, builtin_msa_mod_s_<format>,
builtin_msa_div_u_<format> and builtin_msa_mod_u_<format> will be
transformed into G_SDIV, G_SREM, G_UDIV and G_UREM in legalizeIntrinsic
respectively and selected in the same way.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 23 2019, 4:47 AM
Petar.Avramovic edited the summary of this revision. (Show Details)Oct 23 2019, 6:04 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.