This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Honor the VT when converting float point register names to register class for inline assembly.
ClosedPublic

Authored by craig.topper on Jan 13 2022, 10:14 PM.

Details

Summary

It appears the code here was written for the inline asm clobbering
a specific register, but it also gets used for named input and
output registers.

For the input and output case, we should honor the VT so we
don't insert conversion instructions around the inline assembly.

For the clobber, case we need to pick the largest register class.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 13 2022, 10:14 PM
craig.topper requested review of this revision.Jan 13 2022, 10:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2022, 10:14 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
jrtc27 accepted this revision.Jan 14 2022, 4:18 AM

Ouch

This revision is now accepted and ready to land.Jan 14 2022, 4:18 AM
asb accepted this revision.Jan 14 2022, 6:58 AM