Skip to content

Commit

Permalink
Add a test case rs = rd to jalr.S (riscv-software-src#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox authored Mar 16, 2020
1 parent 272093f commit b59b7b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions isa/rv64ui/jalr.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ target_2:
la t1, linkaddr_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
#-------------------------------------------------------------
Expand Down

0 comments on commit b59b7b8

Please sign in to comment.