This is an archive of the discontinued LLVM Phabricator instance.

Fix APFloat::toString on Float8E5M2 values.
ClosedPublic

Authored by reedwm on Nov 22 2022, 8:18 PM.

Details

Summary

Before, an APInt with value 10 was created, whose width was the significand width. But 10 cannot fit in Float8E5M2's significand.

Diff Detail

Event Timeline

reedwm created this revision.Nov 22 2022, 8:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2022, 8:18 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
reedwm requested review of this revision.Nov 22 2022, 8:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2022, 8:18 PM
bkramer accepted this revision.Dec 1 2022, 5:40 AM

looks good

This revision is now accepted and ready to land.Dec 1 2022, 5:40 AM

Thanks for reviewing! Since I don't have commit access, can you commit this?

This revision was automatically updated to reflect the committed changes.