This is an archive of the discontinued LLVM Phabricator instance.

[VP][RISCV] Add vp.nearbyint and RISC-V support.
ClosedPublic

Authored by fakepaper56 on Nov 8 2022, 6:18 PM.

Details

Summary

nearbyint has the property to execute without exception.
For not modifying fflags, the patch added new machine opcode
PseudoVFROUND_NOEXCEPT_V that expands vfcvt.x.f.v and vfcvt.f.x.v between a pair
of frflags and fsflags.

Diff Detail

Event Timeline

fakepaper56 created this revision.Nov 8 2022, 6:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2022, 6:18 PM
fakepaper56 requested review of this revision.Nov 8 2022, 6:18 PM
fakepaper56 updated this revision to Diff 474151.EditedNov 8 2022, 10:02 PM

Refine comment.

craig.topper added inline comments.Nov 10 2022, 10:34 PM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
10819

an -> a

10832

an -> a

Fix typoes.

fakepaper56 marked 2 inline comments as done.Nov 11 2022, 4:36 PM
fakepaper56 updated this revision to Diff 474991.EditedNov 13 2022, 4:27 AM

Add nearbyint into VPIntrinsicTest.cpp

This revision is now accepted and ready to land.Nov 15 2022, 9:00 PM
This revision was automatically updated to reflect the committed changes.