Remove vestigial j instruction test; improve jal test
[riscv-tests.git] / isa / rv64ud / move.S
1 # See LICENSE for license details.
2
3 #*****************************************************************************
4 # move.S
5 #-----------------------------------------------------------------------------
6 #
7 # This test verifies that mxtf.[s,d], mftx.[s,d], fssr, frsr,
8 # and fsgnj[x|n].d work properly.
9 #
10
11 #include "riscv_test.h"
12 #include "test_macros.h"
13
14 RVTEST_RV64UF
15 RVTEST_CODE_BEGIN
16
17 li a0, 1
18 fssr a0
19
20 TEST_CASE(2, a1, 1, li a0, 0x1234; fssr a1, a0)
21 TEST_CASE(3, a0, 0x34, frsr a0)
22 TEST_CASE(4, a0, 0x34, frsr a0)
23
24 TEST_CASE(5, a0, 0x3FF02468A0000000, li a1, 0x3FF02468A0000000; fmv.d.x f1, a1; fmv.x.d a0, f1)
25 TEST_CASE(6, a0, 0xBFF02468A0001000, li a1, 0x3FF02468A0001000; li a2, -1; fmv.d.x f1, a1; fmv.d.x f2, a2; fsgnj.d f0, f1, f2; fmv.x.d a0, f0)
26
27 TEST_PASSFAIL
28
29 RVTEST_CODE_END
30
31 .data
32 RVTEST_DATA_BEGIN
33
34 TEST_DATA
35
36 RVTEST_DATA_END