This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add mayRaiseFPException to RISCV scalar FP instructions.
ClosedPublic

Authored by craig.topper on Dec 10 2021, 10:54 AM.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 10 2021, 10:54 AM
craig.topper requested review of this revision.Dec 10 2021, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2021, 10:54 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
arcbbb accepted this revision.Dec 14 2021, 1:07 AM

LGTM

This revision is now accepted and ready to land.Dec 14 2021, 1:07 AM
asb added a comment.Dec 14 2021, 5:10 AM

I gather from this patch that the only operations that don't have mayRaiseFPException=1 are:

  • fclass.*
  • fsgnj.*
  • fsgnjn.*
  • fsgnjx.*

All the above are explicitly documented as not setting FP exception flags in the RISC-V ISA manual.

Should the fmv instruction also have mayRaiseFPException=0?

I gather from this patch that the only operations that don't have mayRaiseFPException=1 are:

  • fclass.*
  • fsgnj.*
  • fsgnjn.*
  • fsgnjx.*

All the above are explicitly documented as not setting FP exception flags in the RISC-V ISA manual.

Should the fmv instruction also have mayRaiseFPException=0?

You're right. I did miss the fmv instructions.

This revision was landed with ongoing or failed builds.Dec 14 2021, 9:53 AM
This revision was automatically updated to reflect the committed changes.