summaryrefslogtreecommitdiff
path: root/probe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-20 16:43:28 -0700
committerMichael Forney <mforney@mforney.org>2020-03-20 16:43:56 -0700
commit20bb028632b7a4f76200d60f90eacc821e59d84b (patch)
tree798248ac69007104afa2f74d3f263d2930906f76 /probe
parentc31f9339b2eef5fbe7abb9f05b83e45463864bed (diff)
xz: Update to 5.2.5
Diffstat (limited to 'probe')
-rw-r--r--probe/HAVE___BUILTIN_ASSUME_ALIGNED4
-rw-r--r--probe/gen.lua1
2 files changed, 5 insertions, 0 deletions
diff --git a/probe/HAVE___BUILTIN_ASSUME_ALIGNED b/probe/HAVE___BUILTIN_ASSUME_ALIGNED
new file mode 100644
index 00000000..9c64731f
--- /dev/null
+++ b/probe/HAVE___BUILTIN_ASSUME_ALIGNED
@@ -0,0 +1,4 @@
+void *x;
+int main(void) {
+ return __builtin_assume_aligned(x, 8) == x;
+}
diff --git a/probe/gen.lua b/probe/gen.lua
index 20d513f5..c5a8bdff 100644
--- a/probe/gen.lua
+++ b/probe/gen.lua
@@ -5,6 +5,7 @@ end
probe('HAVE_IMMINTRIN_H')
probe('HAVE__MM_MOVEMASK_EPI8')
probe('HAVE__THREAD_LOCAL')
+probe('HAVE___BUILTIN_ASSUME_ALIGNED')
probe('HAVE___BUILTIN_CLZ')
probe('HAVE___BUILTIN_CTZL')
probe('HAVE___BUILTIN_POPCOUNT')