#ifdef TEST_RIG
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static int texp(dstr *v)
{
mp *m = *(mp **)v[0].buf;
int main(int argc, char *argv[])
{
sub_init();
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, tests, SRCDIR "/t/mpmont");
return (0);
}
#ifdef TEST_RIG
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static int tcreate(dstr *v)
{
mp *m = *(mp **)v[0].buf;
int main(int argc, char *argv[])
{
sub_init();
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, tests, SRCDIR "/t/mpmont");
return (0);
}
#include "config.h"
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
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");
#include <mLib/quis.h>
#include <mLib/testrig.h>
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
#include "mpscan.h"
#define ALLOC(v, vl, sz) do { \
int main(int argc, char *argv[])
{
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, defs, SRCDIR"/t/mpx");
return (0);
}
#include <mLib/quis.h>
#include <mLib/testrig.h>
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
#define DEFVCORE(r) \
static int v_core_##r(dstr *v) \
{ \
int main(int argc, char *argv[])
{
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, defs, SRCDIR"/t/chacha");
return (0);
}
#include <mLib/quis.h>
#include <mLib/testrig.h>
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static void report_failure(const char *test, unsigned nbits,
const char *ref, dstr v[], dstr *d)
{
int main(int argc, char *argv[])
{
ego(argv[0]);
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, defs, SRCDIR"/t/gcm");
return (0);
}
#include <mLib/bits.h>
+#if defined(TEST_RIG) && defined(ENABLE_ASM_DEBUG)
+# include "regdump.h"
+# define BLKC_TESTHOOK do { regdump_init(); } while (0)
+#endif
+
#include "blkc.h"
#include "dispatch.h"
#include "gcipher.h"
#include <mLib/bits.h>
+#if defined(TEST_RIG) && defined(ENABLE_ASM_DEBUG)
+# include "regdump.h"
+# define BLKC_TESTHOOK do { regdump_init(); } while (0)
+#endif
+
#include "blkc.h"
#include "gcipher.h"
#include "rijndael.h"
#include <mLib/bits.h>
+#if defined(TEST_RIG) && defined(ENABLE_ASM_DEBUG)
+# include "regdump.h"
+# define BLKC_TESTHOOK do { regdump_init(); } while (0)
+#endif
+
#include "blkc.h"
#include "gcipher.h"
#include "rijndael.h"
#include <mLib/quis.h>
#include <mLib/testrig.h>
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static const int perm[] = {
0, 13, 10, 7,
4, 1, 14, 11,
int main(int argc, char *argv[])
{
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, defs, SRCDIR"/t/salsa20");
return (0);
}