diff options
Diffstat (limited to 'isa/rv64ui')
-rw-r--r-- | isa/rv64ui/jalr.S | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/isa/rv64ui/jalr.S b/isa/rv64ui/jalr.S index f27005a..c922b11 100644 --- a/isa/rv64ui/jalr.S +++ b/isa/rv64ui/jalr.S @@ -31,6 +31,22 @@ target_2: bne t0, t1, fail #------------------------------------------------------------- + # Test 3: Basic test2, rs = rd + #------------------------------------------------------------- + +test_3: + li TESTNUM, 3 + la t0, target_3 + + jalr t0, t0, 0 +linkaddr_3: + j fail + +target_3: + la t1, linkaddr_3 + bne t0, t1, fail + + #------------------------------------------------------------- # Bypassing tests #------------------------------------------------------------- |