~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-exp.c
diff --git
a/math/mpmont-exp.c
b/math/mpmont-exp.c
index
6b5c8c4
..
ff15b2d
100644
(file)
--- a/
math/mpmont-exp.c
+++ b/
math/mpmont-exp.c
@@
-93,6
+93,10
@@
mp *mpmont_exp(const mpmont *mm, mp *d, mp *a, mp *e)
#ifdef TEST_RIG
#ifdef TEST_RIG
+#ifdef ENABLE_ASM_DEBUG
+# include "regdump.h"
+#endif
+
static int texp(dstr *v)
{
mp *m = *(mp **)v[0].buf;
static int texp(dstr *v)
{
mp *m = *(mp **)v[0].buf;
@@
-136,6
+140,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);
}