mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Include _mm512_zextsi128_si512() in AVX-512 configure probes.
Commit 43da39430
added a dependency on this intrinsic to our
AVX-512 CRC code. It turns out this intrinsic was added to
gcc later than the other ones we were using, so that there
are platforms where the new code fails to compile. Since only
relatively old (pre-gcc-10) compilers are affected, it doesn't
seem worth trying to make the AVX-512 CRC code actually work
on these platforms. Just add the new intrinsic to the configure
probe, so that we'll conclude the code can't be built.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/3350336.1750690281@sss.pgh.pa.us
This commit is contained in:
@ -602,6 +602,7 @@ AC_CACHE_CHECK([for _mm512_clmulepi64_epi128], [Ac_cachevar],
|
||||
{
|
||||
__m128i z;
|
||||
|
||||
x = _mm512_xor_si512(_mm512_zextsi128_si512(_mm_cvtsi32_si128(0)), x);
|
||||
y = _mm512_clmulepi64_epi128(x, y, 0);
|
||||
z = _mm_ternarylogic_epi64(
|
||||
_mm512_castsi512_si128(y),
|
||||
|
1
configure
vendored
1
configure
vendored
@ -18227,6 +18227,7 @@ else
|
||||
{
|
||||
__m128i z;
|
||||
|
||||
x = _mm512_xor_si512(_mm512_zextsi128_si512(_mm_cvtsi32_si128(0)), x);
|
||||
y = _mm512_clmulepi64_epi128(x, y, 0);
|
||||
z = _mm_ternarylogic_epi64(
|
||||
_mm512_castsi512_si128(y),
|
||||
|
@ -2465,6 +2465,7 @@ int main(void)
|
||||
{
|
||||
__m128i z;
|
||||
|
||||
x = _mm512_xor_si512(_mm512_zextsi128_si512(_mm_cvtsi32_si128(0)), x);
|
||||
y = _mm512_clmulepi64_epi128(x, y, 0);
|
||||
z = _mm_ternarylogic_epi64(
|
||||
_mm512_castsi512_si128(y),
|
||||
|
Reference in New Issue
Block a user