URL
https://opencores.org/ocsvn/potato/potato/trunk
Subversion Repositories potato
[/] [potato/] [trunk/] [riscv-tests/] [jal.S] - Rev 50
Go to most recent revision | Compare with Previous | Blame | View Log
# See LICENSE for license details.#*****************************************************************************# jal.S#-----------------------------------------------------------------------------## Test jal instruction.##include "riscv_test.h"#include "test_macros.h"RVTEST_RV32URVTEST_CODE_BEGIN#-------------------------------------------------------------# Test 2: Basic test#-------------------------------------------------------------test_2:li TESTNUM, 2li ra, 0linkaddr_2:jal target_2nopnopj failtarget_2:la x2, linkaddr_2addi x2, x2, 4bne x2, ra, fail#-------------------------------------------------------------# Test delay slot instructions not executed nor bypassed#-------------------------------------------------------------TEST_CASE( 3, x2, 3, \li x2, 1; \jal 1f; \addi x2, x2, 1; \addi x2, x2, 1; \addi x2, x2, 1; \addi x2, x2, 1; \1: addi x2, x2, 1; \addi x2, x2, 1; \)TEST_PASSFAILRVTEST_CODE_END.dataRVTEST_DATA_BEGINTEST_DATARVTEST_DATA_END
Go to most recent revision | Compare with Previous | Blame | View Log
