summaryrefslogtreecommitdiff
path: root/probe
diff options
context:
space:
mode:
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')