This is an archive of the discontinued LLVM Phabricator instance.

[mips] Extend range of register indexes accepted by cfcmsa/ctcmsa
ClosedPublic

Authored by atanasyan on May 29 2019, 8:07 AM.

Details

Summary

The cfcmsa and ctcmsa instructions accept index of MSA control register. The MIPS64 SIMD Architecture define eight MSA control registers. But register index for cfcmsa and ctcmsa instructions might be any number in 0..31 range. If the index is greater then 7, cfcmsa writes zero to the destination registers and ctcmsa does nothing [1].

[1] MIPS Architecture for Programmers Volume IV-j: The MIPS64 SIMD Architecture Module
https://www.mips.com/?do-download=the-mips64-simd-architecture-module

Diff Detail

Event Timeline

atanasyan created this revision.May 29 2019, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2019, 8:07 AM
This revision is now accepted and ready to land.May 30 2019, 2:11 AM
This revision was automatically updated to reflect the committed changes.