chiark / gitweb /
rand/rand-x86ish.S: Hoist argument register allocation outside.
[catacomb] / math / mpx-mul4-test.c
index 30e76912fa0778453b5d64370944bfed84c437e1..5325db0f28d3f3d6e0cf0b94ef8d3a76cc2991f6 100644 (file)
 
 #include "config.h"
 
+#ifdef ENABLE_ASM_DEBUG
+#  include "regdump.h"
+#endif
+
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -57,6 +61,18 @@ static int cpu_features_p(void) { return (cpu_feature_p(CPUFEAT_X86_SSE2)); }
 static int cpu_features_p(void) { return (cpu_feature_p(CPUFEAT_X86_SSE2)); }
 #endif
 
+#if CPUFAM_ARMEL
+#  define VARIANT _arm_neon
+#  define REPR_32
+static int cpu_features_p(void) { return (cpu_feature_p(CPUFEAT_ARM_NEON)); }
+#endif
+
+#if CPUFAM_ARM64
+#  define VARIANT _arm64_simd
+#  define REPR_32
+static int cpu_features_p(void) { return (1); }
+#endif
+
 #ifndef VARIANT
 #  error "Unsupported CPU family."
 #endif
@@ -319,6 +335,9 @@ static test_chunk tests[] = {
 int main(int argc, char *argv[])
 {
   sub_init();
+#ifdef ENABLE_ASM_DEBUG
+  regdump_init();
+#endif
   if (!cpu_features_p())
     { fprintf(stderr, "required cpu feature not available\n"); exit(77); }
   test_run(argc, argv, tests, SRCDIR "/t/mpx-mul4");