[PATCH] D113642: [PowerPC] Provide XL-compatible vec_round implementation
Nemanja Ivanovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 10 20:13:04 PST 2021
nemanjai created this revision.
nemanjai added reviewers: PowerPC, rzurob, qiongsiwu.
Herald added subscribers: shchenz, kbarton, hiraditya.
nemanjai requested review of this revision.
Herald added projects: clang, LLVM.
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.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5528 bytes
Desc: not available
More information about the cfe-commits