Author: Nemanja Ivanovic
Date: 2021-04-22T10:30:59-05:00
New Revision: 51692c6c630dfa9521af47b3c0c14d9f05f25375

URL: 
https://github.com/llvm/llvm-project/commit/51692c6c630dfa9521af47b3c0c14d9f05f25375
DIFF: 
https://github.com/llvm/llvm-project/commit/51692c6c630dfa9521af47b3c0c14d9f05f25375.diff

LOG: [PowerPC] Add missing VSX guard for vec_roundm with vector double

The guard was missed in the previous commit.

Added: 
    

Modified: 
    clang/lib/Headers/altivec.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h
index 8486f97d2fa2..b806aa9a55ce 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 */
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to