]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add masked ++/-- implementation for sizeof < 16
authorMatthias Kretz <m.kretz@gsi.de>
Wed, 27 Mar 2024 12:41:25 +0000 (13:41 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Fri, 10 May 2024 14:06:51 +0000 (16:06 +0200)
commitdcd598817c1b3c62d782f568ce63e37566228a58
tree19f7f372c0f79b5ae3ab884843010c8f797d0f27
parentf0b7583dab56c78824344e00eb6230eaaeb09a44
libstdc++: Add masked ++/-- implementation for sizeof < 16

This resolves further failures (-Wreturn-type warnings) and test
failures for where-* tests targeting AVX-512.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

* include/experimental/bits/simd_x86.h (_S_masked_unary):
Cast inputs < 16 bytes to 16 byte vectors before calling the
right subtraction builtin. Before returning, truncate to the
return vector type.

(cherry picked from commit a6c630c314b099f64d79055964d88b257459cf13)
libstdc++-v3/include/experimental/bits/simd_x86.h