diff options
author | Matthias Kretz <m.kretz@gsi.de> | 2021-06-24 14:20:13 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-24 14:20:13 +0100 |
commit | 0237aa8c706f09bb2568224afcdac40b5e47c3e1 (patch) | |
tree | ededaa5c376512293fc0b5a1e2f48b574bce73a3 /gcc | |
parent | 07ba52849ffca26a3d461f94921b23a9cdbaea7f (diff) | |
download | gcc-0237aa8c706f09bb2568224afcdac40b5e47c3e1.zip gcc-0237aa8c706f09bb2568224afcdac40b5e47c3e1.tar.gz gcc-0237aa8c706f09bb2568224afcdac40b5e47c3e1.tar.bz2 |
libstdc++: Improve copysign(simd) codegen
This also resolves a test failure on aarch64 with -ffast-math and
fixed_size<N> with large N.
Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:
* include/experimental/bits/simd.h: Add missing operator~
overload for simd<floating-point> to __float_bitwise_operators.
* include/experimental/bits/simd_builtin.h
(_SimdImplBuiltin::_S_complement): Bitcast to int (and back) to
implement complement for floating-point vectors.
* include/experimental/bits/simd_fixed_size.h
(_SimdImplFixedSize::_S_copysign): New function, forwarding to
copysign implementation of _SimdTuple members.
* include/experimental/bits/simd_math.h (copysign): Call
_SimdImpl::_S_copysign for fixed_size arguments. Simplify
generic copysign implementation using the new ~ operator.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions