This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Provide XL-compatible vec_round implementation
ClosedPublic

Authored by nemanjai on Nov 10 2021, 8:13 PM.

Details

Summary

The XL implementation of vec_round for vector double uses "round-to-nearest, ties to even" just as the vector float version does. However clang and gcc use "round-to-nearest-away" for vector double and "round-to-nearest, ties to even" for vector float.

The XL behaviour is implemented under the __XL_COMPAT_ALTIVEC__ macro similarly to other instances of incompatibility.

Diff Detail

Event Timeline

nemanjai created this revision.Nov 10 2021, 8:13 PM
nemanjai requested review of this revision.Nov 10 2021, 8:13 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 10 2021, 8:13 PM
saghir accepted this revision.Nov 17 2021, 9:54 AM
saghir added a subscriber: saghir.

LGTM.

This revision is now accepted and ready to land.Nov 17 2021, 9:54 AM
This revision was landed with ongoing or failed builds.Nov 24 2021, 4:44 AM
This revision was automatically updated to reflect the committed changes.