This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix test failing on the GPU due to undefined floating point type
ClosedPublic

Authored by jhuber6 on May 19 2023, 10:46 AM.

Details

Summary

We got build failures due to the handling here, explicitly set the type.

Diff Detail

Event Timeline

jhuber6 created this revision.May 19 2023, 10:46 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 19 2023, 10:46 AM
jhuber6 requested review of this revision.May 19 2023, 10:46 AM
sivachandra added inline comments.May 19 2023, 12:00 PM
libc/test/src/__support/FPUtil/fpbits_test.cpp
201

The best solution is likely to do this:

#ifdef LONG_DOUBLE_IS_DOUBLE
  return;
#else
  .. // The rest of this test.
#endif

Remove the if constexpr on line 200.

sivachandra accepted this revision.May 19 2023, 12:03 PM
This revision is now accepted and ready to land.May 19 2023, 12:03 PM
This revision was landed with ongoing or failed builds.May 19 2023, 12:04 PM
This revision was automatically updated to reflect the committed changes.