~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]
/
math
/
mpmont.c
diff --git
a/math/mpmont.c
b/math/mpmont.c
index
094ac40
..
cc5ffaf
100644
(file)
--- a/
math/mpmont.c
+++ b/
math/mpmont.c
@@
-444,6
+444,10
@@
mp *mpmont_mul(const mpmont *mm, mp *d, mp *a, mp *b)
#ifdef TEST_RIG
#ifdef TEST_RIG
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static int tcreate(dstr *v)
{
mp *m = *(mp **)v[0].buf;
static int tcreate(dstr *v)
{
mp *m = *(mp **)v[0].buf;
@@
-558,6
+562,9
@@
static test_chunk tests[] = {
int main(int argc, char *argv[])
{
sub_init();
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);
}
test_run(argc, argv, tests, SRCDIR "/t/mpmont");
return (0);
}