[all-commits] [llvm/llvm-project] 39e467: [PowerPC] Provide doubleword vector predicate form...
Nemanja Ivanovic via All-commits
all-commits at lists.llvm.org
Thu May 13 02:57:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 39e4676ca798d9aba58823515ac9d48eb64863be
https://github.com/llvm/llvm-project/commit/39e4676ca798d9aba58823515ac9d48eb64863be
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: 2021-05-13 (Thu, 13 May 2021)
Changed paths:
M clang/lib/Headers/altivec.h
M clang/test/CodeGen/builtins-ppc-p8vector.c
M clang/test/CodeGen/builtins-ppc-vsx.c
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
M llvm/lib/Target/PowerPC/PPCInstrVSX.td
A llvm/test/CodeGen/PowerPC/vec_cmpd_p7.ll
Log Message:
-----------
[PowerPC] Provide doubleword vector predicate form comparisons on Power7
There are two reasons this shouldn't be restricted to Power8 and up:
1. For XL compatibility
2. Because clang will expand comparison operators to these intrinsics*
*Without this patch, the following causes a selection error:
int test(vector signed long a, vector signed long b) {
return a < b;
}
This patch provides the handling for the intrinsics in the back
end and removes the Power8 guards from the predicate functions
(vec_{all|any}_{eq|ne|gt|ge|lt|le}).
More information about the All-commits
mailing list