diff options
| author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2014-06-09 03:31:47 +0000 |
|---|---|---|
| committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2014-06-09 03:31:47 +0000 |
| commit | feb4d6a150f6a3b91a3eebfb261124bbad817ac5 (patch) | |
| tree | 82470276294b09b62dc0de47768519e138d3d534 /lib/CodeGen/CGExpr.cpp | |
| parent | e4fb2d3430ca2002316f9f0c9374f2c0b749d151 (diff) | |
| download | clang-feb4d6a150f6a3b91a3eebfb261124bbad817ac5.tar.gz clang-feb4d6a150f6a3b91a3eebfb261124bbad817ac5.tar.bz2 clang-feb4d6a150f6a3b91a3eebfb261124bbad817ac5.tar.xz | |
[PPC64LE] Implement little-endian semantics for vec_sums
The PowerPC vsumsws instruction, accessed via vec_sums, is defined
architecturally with a big-endian bias, in that the second input vector
and the result always reference big-endian element 3 (little-endian
element 0). For ease of porting, the programmer wants elements 3 in
both cases.
To provide this semantics, for little endian we generate a permute for
the second input vector prior to the vsumsws instruction, and generate
a permute for the result vector following the vsumsws instruction.
The correctness of this code is tested by the new sums.c test added in
a previous patch, as well as the modifications to
builtins-ppc-altivec.c in the present patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
