Update to new privileged ISA
[riscv-tests.git] / isa / rv64si / coreid.S
1 #*****************************************************************************
2 # coreid.S
3 #-----------------------------------------------------------------------------
4 #
5 # Test coreid.
6 #
7
8 #include "riscv_test.h"
9 #include "test_macros.h"
10
11 RVTEST_RV64S
12 RVTEST_CODE_BEGIN
13
14 #-------------------------------------------------------------
15 # Basic tests
16 #-------------------------------------------------------------
17
18 TEST_CASE( 2, x1, 0x0, csrr x1, hartid );
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