Page MenuHomePhabricator

[MIPS GlobalISel] Select MSA vector generic and builtin fsqrt

Authored by Petar.Avramovic on Oct 24 2019, 5:05 AM.



selectImpl is able to select G_FSQRT when we set bank for vector
operands to fprb. Add detailed tests.
Note: G_FSQRT is generated from llvm-ir intrinsics llvm.sqrt.*,
and at the moment MIPS is not able to generate this intrinsic for
vector type (some targets generate vector llvm.sqrt.* from calls
to a builtin function).
__builtin_msa_fsqrt_<format> will be transformed into G_FSQRT
in legalizeIntrinsic and selected in the same way.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2019, 5:05 AM
This revision is now accepted and ready to land.Oct 25 2019, 2:09 AM
This revision was automatically updated to reflect the committed changes.