about summary refs log tree commit diff
path: root/sysdeps/arm
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-02-28 15:23:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-03-02 16:41:43 -0300
commit3a4781c16c680a2c5ab4585b4696f781898ab610 (patch)
treec2c9595149edb96b3072b583cd7e08ecb58d8838 /sysdeps/arm
parent90ae3bc393164e260269e9e1711f7ca4956596e9 (diff)
downloadglibc-3a4781c16c680a2c5ab4585b4696f781898ab610.tar.gz
glibc-3a4781c16c680a2c5ab4585b4696f781898ab610.tar.xz
glibc-3a4781c16c680a2c5ab4585b4696f781898ab610.zip
arm: Remove __builtin_arm_uqsub8 usage on string-fza.h
The __builtin_arm_uqsub8 is an internal GCC builtin which might change
in future release (the correct way is to include "arm_acle.h" and use
__uqsub8 ()).  Since not all compilers support it, just use the
inline assembler instead.

Checked on armv7a-linux-gnueabihf.
Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
Diffstat (limited to 'sysdeps/arm')
-rw-r--r--sysdeps/arm/armv6t2/string-fza.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/arm/armv6t2/string-fza.h b/sysdeps/arm/armv6t2/string-fza.h
index d85ce86434..fb75011991 100644
--- a/sysdeps/arm/armv6t2/string-fza.h
+++ b/sysdeps/arm/armv6t2/string-fza.h
@@ -33,13 +33,9 @@ find_zero_all (op_t x)
   /* Use unsigned saturated subtraction from 1 in each byte.
      That leaves 1 for every byte that was zero.  */
   op_t ones = repeat_bytes (0x01);
-#if __GNUC_PREREQ (10, 0)
-  return __builtin_arm_uqsub8 (ones, x);
-#else
   op_t ret;
   asm ("uqsub8 %0,%1,%2" : "=r"(ret) : "r"(ones), "r"(x));
   return ret;
-#endif
 }
 
 /* Identify bytes that are equal between X1 and X2.  */