projects
/
riscv-tests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
minor mt updates
[riscv-tests.git]
/
isa
/
rv64ui
/
rdnpc.S
1
#*****************************************************************************
2
# rdnpc_w.S
3
#-----------------------------------------------------------------------------
4
#
5
# Test rdnpc instruction.
6
#
7
8
#include "riscv_test.h"
9
#include "test_macros.h"
10
11
RVTEST_RV64U
12
RVTEST_CODE_BEGIN
13
14
TEST_CASE(2, a0, 4, \
15
rdnpc a0; \
16
jal 1f; \
17
1: sub a0, ra, a0; \
18
)
19
20
TEST_PASSFAIL
21
22
RVTEST_CODE_END
23
24
.data
25
RVTEST_DATA_BEGIN
26
27
TEST_DATA
28
29
RVTEST_DATA_END