Initialize the register dumping machinery while testing assembler code.
[catacomb] / symm / gcm.c
index 9571894..b438415 100644 (file)
@@ -782,6 +782,10 @@ void gcm_concat(const gcm_params *p, uint32 *z, const uint32 *x,
 #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)
 {
@@ -874,6 +878,9 @@ GCM_WIDTHS(TEST)
 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);
 }