Skip to content

Commit

Permalink
Add rd=x0 test case to csr test (riscv-software-src#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox committed Dec 8, 2020
1 parent 4a54e2b commit cbeadfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions isa/rv64si/csr.S
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RVTEST_CODE_BEGIN

TEST_CASE(20, a0, 0, csrw sscratch, zero; csrr a0, sscratch);
TEST_CASE(21, a0, 0, csrrwi a0, sscratch, 0; csrrwi a0, sscratch, 0xF);
TEST_CASE(22, a0, 0x1f, csrrsi x0, sscratch, 0x10; csrr a0, sscratch);

csrwi sscratch, 3
TEST_CASE( 2, a0, 3, csrr a0, sscratch);
Expand Down

0 comments on commit cbeadfd

Please sign in to comment.