From 1cc1d9db286c7fbd0ff0a0757c2da2a5a6fc54a8 Mon Sep 17 00:00:00 2001 From: Nemanja Ivanovic Date: Thu, 22 Apr 2021 08:47:31 -0500 Subject: [PATCH] [PowerPC] Add vec_vclz as an alias for vec_cntlz in altivec.h Another addition for compatibility with XLC. The functions have the same overloads so just add it as a preprocessor define. --- clang/lib/Headers/altivec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h index 48b43cb..4eac243 100644 --- a/clang/lib/Headers/altivec.h +++ b/clang/lib/Headers/altivec.h @@ -2400,6 +2400,7 @@ vec_popcnt(vector unsigned long long __a) { return __builtin_altivec_vpopcntd(__a); } +#define vec_vclz vec_cntlz /* vec_cntlz */ static __inline__ vector signed char __ATTRS_o_ai -- 2.7.4