chiark / gitweb /
crypto-test.c: Don't print dead registers.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 27 Sep 2019 00:03:48 +0000 (01:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2019 00:38:43 +0000 (00:38 +0000)
crypto-test.c

index e25fd913ad10e38cb3a6685f4f7980f744c0b65c..4c7c2e3f43bbc877c15d8e224035a266d767bd0a 100644 (file)
@@ -323,6 +323,7 @@ void check_test_output(struct test_state *state, const struct test *test)
        printf("failed test `%s'\n", test->name);
        for (def = test->regs; def->name; def++) {
            in = REG(in, def->i);
+           if (!(in->f&REGF_LIVE)) continue;
            if (def->i >= state->nrout) {
                printf("\t   input `%s' = ", def->name);
                def->ty->dump(stdout, &in->v);