1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# See LICENSE for license details.
#*****************************************************************************
# fcmp.S
#-----------------------------------------------------------------------------
#
# Test f{eq|lt|le}.s instructions.
#
#include "riscv_test.h"
#include "test_macros.h"
RVTEST_RV64UF
RVTEST_CODE_BEGIN
#-------------------------------------------------------------
# Arithmetic tests
#-------------------------------------------------------------
TEST_FP_CMP_OP_S( 2, feq.s, 1, -1.36, -1.36)
TEST_FP_CMP_OP_S( 3, fle.s, 1, -1.36, -1.36)
TEST_FP_CMP_OP_S( 4, flt.s, 0, -1.36, -1.36)
TEST_FP_CMP_OP_S( 5, feq.s, 0, -1.37, -1.36)
TEST_FP_CMP_OP_S( 6, fle.s, 1, -1.37, -1.36)
TEST_FP_CMP_OP_S( 7, flt.s, 1, -1.37, -1.36)
TEST_PASSFAIL
RVTEST_CODE_END
.data
RVTEST_DATA_BEGIN
TEST_DATA
RVTEST_DATA_END
|