This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix interpretations of x87 80-bit Inf/NaN
ClosedPublic

Authored by klausler on May 30 2023, 11:03 AM.

Details

Summary

Current implementations of x87 80-bit extended precision floating
point interpret 7FFF8000000000000000 as +Inf, not a Nan. The explicit
MSB in the significand must be set for an infinity.

Diff Detail

Event Timeline

klausler created this revision.May 30 2023, 11:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 11:03 AM
klausler requested review of this revision.May 30 2023, 11:03 AM

There is again no context. Do you want support such an old compute facility or just say no we don't support x87? 80 bits is a precise indicator for x87?

vdonaldson accepted this revision.May 30 2023, 11:29 AM

Looks good to me

This revision is now accepted and ready to land.May 30 2023, 11:29 AM
This revision was automatically updated to reflect the committed changes.