This is an archive of the discontinued LLVM Phabricator instance.

[builtins] Work around long double return bug on Solaris/sparcv9
Needs ReviewPublic

Authored by ro on Oct 5 2020, 5:06 AM.

Details

Summary

As detailed in Bug 47729, several long double tests FAIL on Solaris/sparcv9, ultimately because compiler-rt/lib/builtins/fp_lib.h (fromRep) or similar functions returning long double are miscompiled.

I've been using this patch as a workaround by compiling the affected functions without optimization.

Tested on sparcv9-sun-solaris2.11.

I don't seriously expect this hack to be accepted, but have several times seen that patches (however hacky) tend to attract more attention then bug reports, ultimately leading to a proper solution. Unfortunately, codegen bugs are way beyond my abilities to fix myself, so I have to rely on those who can.

Diff Detail

Event Timeline

ro created this revision.Oct 5 2020, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2020, 5:06 AM
Herald added subscribers: Restricted Project, dexonsmith, fedor.sergeev. · View Herald Transcript
ro requested review of this revision.Oct 5 2020, 5:06 AM