This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix max_size.pass.cpp for PowerPC targets
ClosedPublic

Authored by amyk on Aug 11 2022, 7:35 AM.

Details

Summary

This patch fixes the max_size.pass.cpp test for PowerPC targets, depending on endianness.

We will exhibit the full_size() behaviour for little endian (where __endian_factor = 2 ),
and the half_size() behaviour for big endian (where __endian_factor = 1).

Diff Detail

Event Timeline

amyk created this revision.Aug 11 2022, 7:35 AM
amyk requested review of this revision.Aug 11 2022, 7:35 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptAug 11 2022, 7:35 AM

Looks good from the Power side. Can a libc++ approver take a look?

philnik accepted this revision.Aug 11 2022, 12:08 PM
This revision is now accepted and ready to land.Aug 11 2022, 12:08 PM
This revision was automatically updated to reflect the committed changes.