From bbe8d3b803ff68dc5eb1bdc846b2e3cc072cde0f Mon Sep 17 00:00:00 2001 From: hovercats Date: Fri, 5 Jan 2024 01:31:31 +0100 Subject: xz: 5.4.6 --- probe/HAVE__MM_CLMULEPI64_SI128 | 7 +++++++ probe/HAVE___BUILTIN_BSWAP16 | 4 ++++ probe/gen.lua | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 probe/HAVE__MM_CLMULEPI64_SI128 create mode 100644 probe/HAVE___BUILTIN_BSWAP16 (limited to 'probe') diff --git a/probe/HAVE__MM_CLMULEPI64_SI128 b/probe/HAVE__MM_CLMULEPI64_SI128 new file mode 100644 index 00000000..07c38bbe --- /dev/null +++ b/probe/HAVE__MM_CLMULEPI64_SI128 @@ -0,0 +1,7 @@ +#include +static __m128i x, y; +__attribute__((__target__("pclmul"))) +int main(void) { + _mm_clmulepi64_si128(x, y, 0); + return 0; +} diff --git a/probe/HAVE___BUILTIN_BSWAP16 b/probe/HAVE___BUILTIN_BSWAP16 new file mode 100644 index 00000000..7afd2481 --- /dev/null +++ b/probe/HAVE___BUILTIN_BSWAP16 @@ -0,0 +1,4 @@ +unsigned x = 0xff; +int main(void) { + return __builtin_bswap16(x) & 0xff; +} diff --git a/probe/gen.lua b/probe/gen.lua index f1463fa2..6a5e1499 100644 --- a/probe/gen.lua +++ b/probe/gen.lua @@ -6,10 +6,12 @@ probe('HAVE_EMMINTRIN_H') probe('HAVE_IMMINTRIN_H') probe('HAVE_INLINE_ASM') probe('HAVE_MMINTRIN_H') +probe('HAVE__MM_CLMULEPI64_SI128') probe('HAVE__MM_MOVEMASK_EPI8') probe('HAVE__THREAD_LOCAL') probe('HAVE___BUILTIN_ASSUME_ALIGNED') probe('HAVE___BUILTIN_CHOOSE_EXPR') +probe('HAVE___BUILTIN_BSWAP16') probe('HAVE___BUILTIN_CLZ') probe('HAVE___BUILTIN_CTZL') probe('HAVE___BUILTIN_POPCOUNT') -- cgit v1.2.3