~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize the register dumping machinery while testing assembler code.
[catacomb]
/
symm
/
chacha.c
diff --git
a/symm/chacha.c
b/symm/chacha.c
index
b06deae
..
8cc16b8
100644
(file)
--- a/
symm/chacha.c
+++ b/
symm/chacha.c
@@
-853,6
+853,10
@@
CHACHA_VARS(DEFXGRAND)
#include <mLib/quis.h>
#include <mLib/testrig.h>
#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) \
{ \
#define DEFVCORE(r) \
static int v_core_##r(dstr *v) \
{ \
@@
-987,6
+991,9
@@
CHACHA_VARS(DEFXTAB)
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
+#ifdef ENABLE_ASM_DEBUG
+ regdump_init();
+#endif
test_run(argc, argv, defs, SRCDIR"/t/chacha");
return (0);
}
test_run(argc, argv, defs, SRCDIR"/t/chacha");
return (0);
}