diff options
author | Eric Anholt <[email protected]> | 2018-07-20 12:29:39 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-23 10:21:42 -0700 |
commit | 91e24e57188ad6ec4495ff4c8ffceed284328601 (patch) | |
tree | f93512f5bfbd5b35699dc4793d868142d6e9e77e /src/broadcom/qpu/tests/qpu_disasm.c | |
parent | a1beb333d86a4114262e3613e0ed5da73f743715 (diff) |
v3d: Print the instruction we're testing in the QPU disasm/pack round-trip.
If we fail initial disassembly, it's good to know what instruction it was
that failed.
Diffstat (limited to 'src/broadcom/qpu/tests/qpu_disasm.c')
-rw-r--r-- | src/broadcom/qpu/tests/qpu_disasm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/broadcom/qpu/tests/qpu_disasm.c b/src/broadcom/qpu/tests/qpu_disasm.c index 814e032bf1c..ae502ae2e50 100644 --- a/src/broadcom/qpu/tests/qpu_disasm.c +++ b/src/broadcom/qpu/tests/qpu_disasm.c @@ -112,9 +112,10 @@ main(int argc, char **argv) for (int i = 0; i < ARRAY_SIZE(tests); i++) { devinfo.ver = tests[i].ver; - printf("Testing v%d.%d 0x%016llx... ", + printf("Testing v%d.%d 0x%016llx (\"%s\")... ", devinfo.ver / 10, devinfo.ver % 10, - (long long)tests[i].inst); + (long long)tests[i].inst, + tests[i].expected); const char *disasm_output = v3d_qpu_disasm(&devinfo, tests[i].inst); |