[PowerPC] Add missing VSX guard for vec_roundm with vector double
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 22 Apr 2021 10:41:37 +0000 (05:41 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 22 Apr 2021 15:30:59 +0000 (10:30 -0500)
The guard was missed in the previous commit.

clang/lib/Headers/altivec.h

index 8486f97..b806aa9 100644 (file)
@@ -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 */