From e98b9283c4341ef099a7663b3d15104695c4a567 Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 12 Jan 2015 00:21:55 -0500 Subject: improve test --- test/test-td-simple.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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}; } -- cgit v1.2.3