Commit 86f7f8aa authored by jinbao chen's avatar jinbao chen
Browse files

add test case

parent e453d675
......@@ -6,4 +6,8 @@ _start:
csrrw x2,0x000,x1
lui x1,0x3
csrrs x2,0x000,x1
csrrc x2,0x000,x1
\ No newline at end of file
csrrc x2,0x000,x1
csrrwi x2,0x000,1
csrrsi x2,0x000,3
csrrci x2,0x000,3
csrrsi x2,0x000,0
......@@ -3,3 +3,7 @@
000030b7
0000a173
0000b173
0000d173
0001e173
0001f173
00006173
......@@ -3,3 +3,7 @@
000030b7
0000a173
0000b173
0000d173
0001e173
0001f173
00006173
......@@ -10,3 +10,7 @@ Disassembly of section .text:
1005c: 000030b7 lui ra,0x3
10060: 0000a173 csrrs sp,ustatus,ra
10064: 0000b173 csrrc sp,ustatus,ra
10068: 0000d173 csrrwi sp,ustatus,1
1006c: 0001e173 csrrsi sp,ustatus,3
10070: 0001f173 csrrci sp,ustatus,3
10074: 00006173 csrrsi sp,ustatus,0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment