[PATCH] D110934: [NFC] Update return type of vec_popcnt to vector unsigned.
Amy Kwan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 7 09:33:39 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG74b1ac7155a0: [NFC] Update return type of vec_popcnt to vector unsigned. (authored by amyk).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110934/new/
https://reviews.llvm.org/D110934
Files:
clang/lib/Headers/altivec.h
Index: clang/lib/Headers/altivec.h
===================================================================
--- clang/lib/Headers/altivec.h
+++ clang/lib/Headers/altivec.h
@@ -2482,7 +2482,7 @@
#ifdef __POWER8_VECTOR__
/* vec_popcnt */
-static __inline__ vector signed char __ATTRS_o_ai
+static __inline__ vector unsigned char __ATTRS_o_ai
vec_popcnt(vector signed char __a) {
return __builtin_altivec_vpopcntb(__a);
}
@@ -2490,7 +2490,7 @@
vec_popcnt(vector unsigned char __a) {
return __builtin_altivec_vpopcntb(__a);
}
-static __inline__ vector signed short __ATTRS_o_ai
+static __inline__ vector unsigned short __ATTRS_o_ai
vec_popcnt(vector signed short __a) {
return __builtin_altivec_vpopcnth(__a);
}
@@ -2498,7 +2498,7 @@
vec_popcnt(vector unsigned short __a) {
return __builtin_altivec_vpopcnth(__a);
}
-static __inline__ vector signed int __ATTRS_o_ai
+static __inline__ vector unsigned int __ATTRS_o_ai
vec_popcnt(vector signed int __a) {
return __builtin_altivec_vpopcntw(__a);
}
@@ -2506,7 +2506,7 @@
vec_popcnt(vector unsigned int __a) {
return __builtin_altivec_vpopcntw(__a);
}
-static __inline__ vector signed long long __ATTRS_o_ai
+static __inline__ vector unsigned long long __ATTRS_o_ai
vec_popcnt(vector signed long long __a) {
return __builtin_altivec_vpopcntd(__a);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110934.377890.patch
Type: text/x-patch
Size: 1326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211007/6d87f228/attachment.bin>
More information about the cfe-commits
mailing list