URL
https://opencores.org/ocsvn/potato/potato/trunk
Subversion Repositories potato
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 29 to Rev 30
- ↔ Reverse comparison
Rev 29 → Rev 30
/potato/branches/cache-playground/tests/sw-jal.S
0,0 → 1,41
# The Potato Processor - A simple RISC-V based processor for FPGAs |
# (c) Kristian Klomsten Skordal 2014 - 2015 <kristian.skordal@wafflemail.net> |
# Report bugs and issues on <http://opencores.org/project,potato,bugtracker> |
|
#include "riscv_test.h" |
#include "test_macros.h" |
|
.section .text |
RVTEST_RV32U |
RVTEST_CODE_BEGIN |
|
test_1: |
li TESTNUM, 1 |
|
la ra, test_failed |
la sp, temp |
sw ra, 0(sp) |
jal ra, test_cmp |
|
1: |
j fail |
j pass |
|
test_cmp: |
la t0, 1b |
bne ra, t0, fail |
addi ra, ra, 4 |
ret |
|
TEST_PASSFAIL |
RVTEST_CODE_END |
|
test_failed: |
RVTEST_FAIL |
|
# Allocate a 32-bit word to store some data into |
.section .data |
temp: |
.word 0x00000000 |
|
|
/potato/branches/cache-playground/Makefile
77,7 → 77,8
# Local tests to run: |
LOCAL_TESTS ?= \ |
scall \ |
sbreak |
sbreak \ |
sw-jal |
|
all: potato.prj run-tests |
|