summaryrefslogtreecommitdiff
path: root/probe
diff options
context:
space:
mode:
authorhovercats <hovercatswithlasereyes@protonmail.com>2024-01-05 01:31:31 +0100
committerMichael Forney <mforney@mforney.org>2024-02-07 20:50:18 -0800
commitbbe8d3b803ff68dc5eb1bdc846b2e3cc072cde0f (patch)
tree836210625c4bdbce8f09ed0a2410b495eb03dc65 /probe
parentdc7887f6b8c35a599e203052a0bcda0ea6a2e1d9 (diff)
xz: 5.4.6
Diffstat (limited to 'probe')
-rw-r--r--probe/HAVE__MM_CLMULEPI64_SI1287
-rw-r--r--probe/HAVE___BUILTIN_BSWAP164
-rw-r--r--probe/gen.lua2
3 files changed, 13 insertions, 0 deletions
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 <immintrin.h>
+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')