-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Use RS3d as temp_regd for CHECK_WRITE * Append the negative test case
- Loading branch information
Showing
6 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.global _start | ||
_start: | ||
|
||
la a0, n0 | ||
li a1, 1 | ||
amoadd.w a2, a1, (a0) | ||
|
||
ld a3, (a0) | ||
bne a3, a1, fail | ||
bne a2, zero, fail | ||
|
||
done: | ||
li a0, 0 | ||
li a7, 93 | ||
ecall | ||
fail: | ||
li a0, 1 | ||
li a7, 93 | ||
ecall | ||
|
||
.section .data | ||
n0: | ||
.dword 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SECTIONS | ||
{ | ||
. = 0x100b0; | ||
.text : { *(.text) } | ||
. = 0x11000; | ||
.data : { *(.data) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters