From c25b9bcb0f04b8f00b83c85938c8cfa580ce6996 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Fri, 16 Oct 2020 18:59:25 -0600 Subject: [PATCH] passes quick test: auipc --- test/test.S | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test.S b/test/test.S index 9526359..7a18eb2 100644 --- a/test/test.S +++ b/test/test.S @@ -4,7 +4,6 @@ _start: # NOTE: nop required because cpu currently does not detect when something is needed from a later stage of the pipeline. # 4 clocks allows one instruction to finish before the next reads the regfile - # AUIPC # JAL # JALR @@ -198,6 +197,15 @@ _start: nop nop + # auipc + auipc x3, 0 # x3 = pc + 0 + auipc x4, 3 # x4 = pc + 0x3000 + auipc x5, 0xfffff # x5 = pc + 0xfffff000 + # TODO: verify auipc adds and does not concatenate + nop + nop + nop + # counter and infinite loop nop