This is an archive of the discontinued LLVM Phabricator instance.

Teach Sparc assembler about %fprs
AbandonedPublic

Authored by joerg on Aug 11 2015, 5:53 AM.

Details

Summary

Add support for reading/writing the FPRS register.

Diff Detail

Event Timeline

joerg updated this revision to Diff 31794.Aug 11 2015, 5:53 AM
joerg retitled this revision from to Teach Sparc assembler about %fprs.
joerg updated this object.
joerg added reviewers: llvm-commits, venkatra.

RDFPRS/WRFPRS is actually just another name for RDASR/WRASR -- %fprs is just %asr6. So, most of this isn't actually needed; you should be able to just make the name %fprs be an alias for %asr6 in SparcAsmParser, and write out the other name in SparcInstPrinter depending on isV9.

joerg abandoned this revision.Aug 19 2015, 2:41 PM

A simpler version just mapping %fprs to %asr6 was commited.