[PATCH] D113642: [PowerPC] Provide XL-compatible vec_round implementation
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113642
Files:
clang/lib/Headers/altivec.h
clang/test/CodeGen/builtins-ppc-vsx.c
clang/test/CodeGen/builtins-ppc-xlcompat.c
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/read-set-flm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113642.386410.patch
Type: text/x-patch
Size: 5528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/b8d31937/attachment-0001.bin>
More information about the llvm-commits
mailing list