Fix breakpoint test when only one breakpoint present
[riscv-tests.git] / isa / rv64uf / fmin.S
1 # See LICENSE for license details.
2
3 #*****************************************************************************
4 # fmin.S
5 #-----------------------------------------------------------------------------
6 #
7 # Test f{min|max}.{s|d} instructinos.
8 #
9
10 #include "riscv_test.h"
11 #include "test_macros.h"
12
13 RVTEST_RV64UF
14 RVTEST_CODE_BEGIN
15
16 #-------------------------------------------------------------
17 # Arithmetic tests
18 #-------------------------------------------------------------
19
20 TEST_FP_OP2_S( 2, fmin.s, 0, 1.0, 2.5, 1.0 );
21 TEST_FP_OP2_S( 3, fmin.s, 0, -1235.1, -1235.1, 1.1 );
22 TEST_FP_OP2_S( 4, fmin.s, 0, -1235.1, 1.1, -1235.1 );
23 TEST_FP_OP2_S( 5, fmin.s, 0, -1235.1, NaN, -1235.1 );
24 TEST_FP_OP2_S( 6, fmin.s, 0, 0.00000001, 3.14159265, 0.00000001 );
25 TEST_FP_OP2_S( 7, fmin.s, 0, -2.0, -1.0, -2.0 );
26
27 TEST_FP_OP2_S(12, fmax.s, 0, 2.5, 2.5, 1.0 );
28 TEST_FP_OP2_S(13, fmax.s, 0, 1.1, -1235.1, 1.1 );
29 TEST_FP_OP2_S(14, fmax.s, 0, 1.1, 1.1, -1235.1 );
30 TEST_FP_OP2_S(15, fmax.s, 0, -1235.1, NaN, -1235.1 );
31 TEST_FP_OP2_S(16, fmax.s, 0, 3.14159265, 3.14159265, 0.00000001 );
32 TEST_FP_OP2_S(17, fmax.s, 0, -1.0, -1.0, -2.0 );
33
34 TEST_FP_OP2_D(22, fmin.d, 0, 1.0, 2.5, 1.0 );
35 TEST_FP_OP2_D(23, fmin.d, 0, -1235.1, -1235.1, 1.1 );
36 TEST_FP_OP2_D(24, fmin.d, 0, -1235.1, 1.1, -1235.1 );
37 TEST_FP_OP2_D(25, fmin.d, 0, -1235.1, NaN, -1235.1 );
38 TEST_FP_OP2_D(26, fmin.d, 0, 0.00000001, 3.14159265, 0.00000001 );
39 TEST_FP_OP2_D(27, fmin.d, 0, -2.0, -1.0, -2.0 );
40
41 TEST_FP_OP2_D(32, fmax.d, 0, 2.5, 2.5, 1.0 );
42 TEST_FP_OP2_D(33, fmax.d, 0, 1.1, -1235.1, 1.1 );
43 TEST_FP_OP2_D(34, fmax.d, 0, 1.1, 1.1, -1235.1 );
44 TEST_FP_OP2_D(35, fmax.d, 0, -1235.1, NaN, -1235.1 );
45 TEST_FP_OP2_D(36, fmax.d, 0, 3.14159265, 3.14159265, 0.00000001 );
46 TEST_FP_OP2_D(37, fmax.d, 0, -1.0, -1.0, -2.0 );
47
48 TEST_PASSFAIL
49
50 RVTEST_CODE_END
51
52 .data
53 RVTEST_DATA_BEGIN
54
55 TEST_DATA
56
57 RVTEST_DATA_END