diff options
author | comex | 2015-01-12 00:21:55 -0500 |
---|---|---|
committer | comex | 2015-01-12 00:21:55 -0500 |
commit | e98b9283c4341ef099a7663b3d15104695c4a567 (patch) | |
tree | 8471909d27bcdf058b6301975a61ed5842518bcc | |
parent | that was easy (diff) | |
download | substitute-e98b9283c4341ef099a7663b3d15104695c4a567.tar.gz |
improve test
-rw-r--r-- | test/test-td-simple.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-td-simple.c b/test/test-td-simple.c index 755102b..00bf179 100644 --- a/test/test-td-simple.c +++ b/test/test-td-simple.c @@ -28,8 +28,8 @@ static tdis_ret P_data(struct tc *ctx, unsigned o0, unsigned o1, unsigned o2, un } NOINLINE UNUSED -static tdis_ret P_pcrel(struct tc *ctx, UNUSED uint32_t dpc, UNUSED unsigned reg, UNUSED bool is_load) { - printf("adr: %08x\n", ctx->op); +static tdis_ret P_pcrel(struct tc *ctx, uint32_t dpc, unsigned reg, bool is_load) { + printf("adr%s: %08x => %08x r%u\n", is_load ? "+load" : "", ctx->op, dpc, reg); return (tdis_ret) {false}; } @@ -40,8 +40,8 @@ static tdis_ret P_ret(struct tc *ctx) { } NOINLINE UNUSED -static tdis_ret P_branch(struct tc *ctx, UNUSED uint32_t dpc) { - printf("branch: %08x\n", ctx->op); +static tdis_ret P_branch(struct tc *ctx, uint32_t dpc) { + printf("branch: %08x => %08x\n", ctx->op, dpc); return (tdis_ret) {false}; } |