[all-commits] [llvm/llvm-project] 2071ce: [Altivec] Use signed comparison for vec_all_* and ...
Bardia Mahjour via All-commits
all-commits at lists.llvm.org
Mon Jul 12 08:47:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2071ce9d4559d444a065d78248a7381bf121b766
https://github.com/llvm/llvm-project/commit/2071ce9d4559d444a065d78248a7381bf121b766
Author: Bardia Mahjour <bmahjour at ca.ibm.com>
Date: 2021-07-12 (Mon, 12 Jul 2021)
Changed paths:
M clang/lib/Headers/altivec.h
M clang/test/CodeGen/builtins-ppc-altivec.c
M clang/test/CodeGen/builtins-ppc-vsx.c
Log Message:
-----------
[Altivec] Use signed comparison for vec_all_* and vec_any_* interfaces
We are currently being inconsistent in using signed vs unsigned comparisons for
vec_all_* and vec_any_* interfaces that use vector bool types. For example we
use signed comparison for vec_all_ge(vector signed char, vector bool char) but
unsigned comparison for when the arguments are swapped. GCC and XL use signed
comparison instead. This patch makes clang consistent with itself and with XL
and GCC.
Reviewed By: nemanjai
Differential Revision: https://reviews.llvm.org/D105666
More information about the All-commits
mailing list