https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81294

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
It looks like (now fixed) bug in the documentation. So, following patch should
sync gcc with the fixed docs:

--cut here--
Index: adxintrin.h
===================================================================
--- adxintrin.h (revision 249844)
+++ adxintrin.h (working copy)
@@ -33,7 +33,7 @@
 _subborrow_u32 (unsigned char __CF, unsigned int __X,
                unsigned int __Y, unsigned int *__P)
 {
-  return __builtin_ia32_sbb_u32 (__CF, __Y, __X, __P);
+  return __builtin_ia32_sbb_u32 (__CF, __X, __Y, __P);
 }

 extern __inline unsigned char
@@ -58,7 +58,7 @@
 _subborrow_u64 (unsigned char __CF, unsigned long long __X,
                unsigned long long __Y, unsigned long long *__P)
 {
-  return __builtin_ia32_sbb_u64 (__CF, __Y, __X, __P);
+  return __builtin_ia32_sbb_u64 (__CF, __X, __Y, __P);
 }

 extern __inline unsigned char
--cut here--

Reply via email to