X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/db2bf4111cde36048ac66bbac58547d105bc7e80..c4ccbbf992e1587ae316f66af6a28006780688d8:/utils/t/bits-test.c diff --git a/utils/t/bits-test.c b/utils/t/bits-test.c index b4a515b..4967fd6 100644 --- a/utils/t/bits-test.c +++ b/utils/t/bits-test.c @@ -72,25 +72,25 @@ TARITH(SUB) static const struct tvec_urange ur_eight = { 8, 8 }; static const struct tvec_urange ur_shift = { 0, 63 }; static const struct tvec_regdef shift_regs[] = { - { "x", RX, &tvty_bytes, 0, { &ur_eight } }, - { "n", RN, &tvty_uint, 0, { &ur_shift } }, - { "z", RZ, &tvty_bytes, 0, { &ur_eight } }, + { "x", &tvty_bytes, RX, 0, { &ur_eight } }, + { "n", &tvty_uint, RN, 0, { &ur_shift } }, + { "z", &tvty_bytes, RZ, 0, { &ur_eight } }, TVEC_ENDREGS }; static const struct tvec_regdef arith_regs[] = { - { "x", RX, &tvty_bytes, 0, { &ur_eight } }, - { "y", RY, &tvty_bytes, 0, { &ur_eight } }, - { "z", RZ, &tvty_bytes, 0, { &ur_eight } }, + { "x", &tvty_bytes, RX, 0, { &ur_eight } }, + { "y", &tvty_bytes, RY, 0, { &ur_eight } }, + { "z", &tvty_bytes, RZ, 0, { &ur_eight } }, TVEC_ENDREGS }; static const struct tvec_test tests[] = { - { "lsl64", shift_regs, 0, test_LSL }, - { "lsr64", shift_regs, 0, test_LSR }, - { "rol64", shift_regs, 0, test_ROL }, - { "ror64", shift_regs, 0, test_ROR }, - { "add64", arith_regs, 0, test_ADD }, - { "sub64", arith_regs, 0, test_SUB }, + { "lsl64", shift_regs, 0, test_LSL }, + { "lsr64", shift_regs, 0, test_LSR }, + { "rol64", shift_regs, 0, test_ROL }, + { "ror64", shift_regs, 0, test_ROR }, + { "add64", arith_regs, 0, test_ADD }, + { "sub64", arith_regs, 0, test_SUB }, TVEC_ENDTESTS };