diff options
author | Nemanja Ivanovic <nemanjai@ca.ibm.com> | 2019-11-07 20:40:32 -0600 |
---|---|---|
committer | Nemanja Ivanovic <nemanjai@ca.ibm.com> | 2019-11-07 20:40:32 -0600 |
commit | 070e4027b02453f0962e5b61335a517581c5528f (patch) | |
tree | cd94e8263f9eb2fa5cd74c569bd81899a6e52375 /clang/lib/Headers | |
parent | 9af28400d6ff59614dad2584f5de03be2e294151 (diff) | |
download | bcm5719-llvm-070e4027b02453f0962e5b61335a517581c5528f.tar.gz bcm5719-llvm-070e4027b02453f0962e5b61335a517581c5528f.zip |
[PowerPC][Altivec] Emit correct builtin for single precision vec_all_ne
We currently emit a double precision comparison instruction for this, whereas we
need to emit the single precision version.
Differential revision: https://reviews.llvm.org/D64024
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r-- | clang/lib/Headers/altivec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h index 8352f8f740c..77a0e494df3 100644 --- a/clang/lib/Headers/altivec.h +++ b/clang/lib/Headers/altivec.h @@ -14784,7 +14784,7 @@ static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool long long __a, static __inline__ int __ATTRS_o_ai vec_all_ne(vector float __a, vector float __b) { #ifdef __VSX__ - return __builtin_vsx_xvcmpeqdp_p(__CR6_EQ, (vector double)__a, (vector double)__b); + return __builtin_vsx_xvcmpeqsp_p(__CR6_EQ, __a, __b); #else return __builtin_altivec_vcmpeqfp_p(__CR6_EQ, __a, __b); #endif |