1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test fsgn{j|jn|x}.s instructions.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 #-------------------------------------------------------------
18 #-------------------------------------------------------------
20 TEST_FP_OP2_S( 2, fsgnj.s, 0, -6.3, 6.3, -1.0 );
21 TEST_FP_OP2_S( 3, fsgnj.s, 0, 7.3, 7.3, 2.0 );
22 TEST_FP_OP2_S( 4, fsgnj.s, 0, -8.3, -8.3, -3.0 );
23 TEST_FP_OP2_S( 5, fsgnj.s, 0, 9.3, -9.3, 4.0 );
25 TEST_FP_OP2_S(12, fsgnjn.s, 0, 6.3, 6.3, -1.0 );
26 TEST_FP_OP2_S(13, fsgnjn.s, 0, -7.3, 7.3, 2.0 );
27 TEST_FP_OP2_S(14, fsgnjn.s, 0, 8.3, -8.3, -3.0 );
28 TEST_FP_OP2_S(15, fsgnjn.s, 0, -9.3, -9.3, 4.0 );
30 TEST_FP_OP2_S(22, fsgnjx.s, 0, -6.3, 6.3, -1.0 );
31 TEST_FP_OP2_S(23, fsgnjx.s, 0, 7.3, 7.3, 2.0 );
32 TEST_FP_OP2_S(24, fsgnjx.s, 0, 8.3, -8.3, -3.0 );
33 TEST_FP_OP2_S(25, fsgnjx.s, 0, -9.3, -9.3, 4.0 );