summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-13 18:30:06 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-13 18:30:06 +0000
commit1cf7c64fa525bb59eb91151bac343ca46d050144 (patch)
treee16fb45b2376713e9cbb04215951d3018064afc4 /clang/lib
parentf675289d87c4effb46ae301463e6416aa3ab2c77 (diff)
downloadbcm5719-llvm-1cf7c64fa525bb59eb91151bac343ca46d050144.tar.gz
bcm5719-llvm-1cf7c64fa525bb59eb91151bac343ca46d050144.zip
[PPC64LE] Run some existing Altivec tests on powerpc64le as well
There are several Altivec tests that formerly ran only on big-endian targets (and in some cases only on 32-bit targets). It is useful to verify these on little-endian targets as well. While testing these, I discovered a typo in <altivec.h>. This is also fixed by this patch. llvm-svn: 210928
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/altivec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h
index bee9e2de8a5..7a4a774f7b0 100644
--- a/clang/lib/Headers/altivec.h
+++ b/clang/lib/Headers/altivec.h
@@ -4194,7 +4194,7 @@ static vector bool short __ATTRS_o_ai
vec_pack(vector bool int __a, vector bool int __b)
{
#ifdef __LITTLE_ENDIAN__
- return (vector unsigned short)vec_perm(__a, __b, (vector unsigned char)
+ return (vector bool short)vec_perm(__a, __b, (vector unsigned char)
(0x00, 0x01, 0x04, 0x05, 0x08, 0x09, 0x0C, 0x0D,
0x10, 0x11, 0x14, 0x15, 0x18, 0x19, 0x1C, 0x1D));
#else
OpenPOWER on IntegriCloud