From: Nemanja Ivanovic Date: Thu, 22 Apr 2021 10:41:37 +0000 (-0500) Subject: [PowerPC] Add missing VSX guard for vec_roundm with vector double X-Git-Tag: llvmorg-14-init~8772 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51692c6c630dfa9521af47b3c0c14d9f05f25375;p=platform%2Fupstream%2Fllvm.git [PowerPC] Add missing VSX guard for vec_roundm with vector double The guard was missed in the previous commit. --- diff --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h index 8486f97..b806aa9 100644 --- a/clang/lib/Headers/altivec.h +++ b/clang/lib/Headers/altivec.h @@ -3734,9 +3734,11 @@ static __inline__ vector float __ATTRS_o_ai vec_roundm(vector float __a) { return vec_floor(__a); } +#ifdef __VSX__ static __inline__ vector double __ATTRS_o_ai vec_roundm(vector double __a) { return vec_floor(__a); } +#endif /* vec_vrfim */