]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Replace use of incorrect non-temporal store
authorMatthias Kretz <m.kretz@gsi.de>
Fri, 2 Jun 2023 11:44:22 +0000 (13:44 +0200)
committerMatthias Kretz <m.kretz@gsi.de>
Wed, 8 May 2024 12:22:16 +0000 (14:22 +0200)
commite60ec9b0e02e8647c289d204342e992e91750011
tree5b6d3e0b0af53020952961e12559c90a3ffbb080
parent81830862ee431e93c4008c87da8ab352dc79770d
libstdc++: Replace use of incorrect non-temporal store

The call to the base implementation sometimes didn't find a matching
signature because the _Abi parameter of _SimdImpl* was "wrong" after
conversion. It has to call into <new ABI tag>::_SimdImpl instead of the
current ABI tag's _SimdImpl. This also reduces the number of possible
template instantiations.

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

PR libstdc++/110054
* include/experimental/bits/simd_builtin.h (_S_masked_store):
Call into deduced ABI's SimdImpl after conversion.
* include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
Don't use _mm_maskmoveu_si128. Use the generic fall-back
implementation. Also fix masked stores without SSE2, which
were not doing anything before.

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