Page MenuHomePhabricator

[Sparc] Add support for the partial write PSR instruction
ClosedPublic

Authored by dcederman on Jun 27 2018, 6:32 AM.

Details

Summary

Partial write %PSR (WRPSR) is a SPARC V8e option that allows WRPSR instructions to only affect the %PSR.ET field. It is supported by the GR740.

Diff Detail

Repository
rL LLVM

Event Timeline

dcederman created this revision.Jun 27 2018, 6:32 AM

The instruction mnemonic "pwr" is invented here, I guess? I don't see that ever having been used elsewhere (e.g., binutils as doesn't support this yet?)

Seems okay, but just want to make sure we're not causing a compatibility issue.

Yes, the SPARC V8e manual did not provide a mnemonic for it so it is invented here. I have submitted a similar patch to binutils so I will hold this patch until the other one gets approved, in case someone wants me to change the name.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 27 2018, 5:37 AM
This revision was automatically updated to reflect the committed changes.