aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aarch64/arm_fp16.h
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2023-04-19 10:32:07 +0100
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>2023-04-19 10:32:07 +0100
commit9bc407c787771baad6c69cee3e392f15a5b9163d (patch)
tree3d131cd3678de8d062bdd1224a02566f1d00333b /gcc/config/aarch64/arm_fp16.h
parentade0a1ee5c6707b950ba284adcfed0514866c12d (diff)
downloadgcc-9bc407c787771baad6c69cee3e392f15a5b9163d.zip
gcc-9bc407c787771baad6c69cee3e392f15a5b9163d.tar.gz
gcc-9bc407c787771baad6c69cee3e392f15a5b9163d.tar.bz2
aarch64: Delete __builtin_aarch64_neg* builtins and their use
I don't think we need to keep the __builtin_aarch64_neg* builtins around. They are only used once in the vnegh_f16 intrinsic in arm_fp16.h and I AFAICT it was added this way only for the sake of orthogonality in https://gcc.gnu.org/g:d7f33f07d88984cbe769047e3d07fc21067fbba9 We already use normal "-" negation in the other vneg* intrinsics, so do so here as well. Bootstrapped and tested on aarch64-none-linux-gnu. gcc/ChangeLog: * config/aarch64/aarch64-simd-builtins.def (neg): Delete builtins definition. * config/aarch64/arm_fp16.h (vnegh_f16): Reimplement using normal negation.
Diffstat (limited to 'gcc/config/aarch64/arm_fp16.h')
-rw-r--r--gcc/config/aarch64/arm_fp16.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/aarch64/arm_fp16.h b/gcc/config/aarch64/arm_fp16.h
index a8fa4db..350f8cc 100644
--- a/gcc/config/aarch64/arm_fp16.h
+++ b/gcc/config/aarch64/arm_fp16.h
@@ -334,7 +334,7 @@ __extension__ extern __inline float16_t
__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
vnegh_f16 (float16_t __a)
{
- return __builtin_aarch64_neghf (__a);
+ return -__a;
}
__extension__ extern __inline float16_t