aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uzfh/fcmp.S
blob: 9f8a4e39315f3669dea93737d8d02aad6a04cdf6 (plain)
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}.h instructions.
#

#include "riscv_test.h"
#include "test_macros.h"

RVTEST_RV64UF
RVTEST_CODE_BEGIN

  #-------------------------------------------------------------
  # Arithmetic tests
  #-------------------------------------------------------------

  TEST_FP_CMP_OP_H( 2, feq.h, 0x00, 1, -1.36, -1.36)
  TEST_FP_CMP_OP_H( 3, fle.h, 0x00, 1, -1.36, -1.36)
  TEST_FP_CMP_OP_H( 4, flt.h, 0x00, 0, -1.36, -1.36)

  TEST_FP_CMP_OP_H( 5, feq.h, 0x00, 0, -1.37, -1.36)
  TEST_FP_CMP_OP_H( 6, fle.h, 0x00, 1, -1.37, -1.36)
  TEST_FP_CMP_OP_H( 7, flt.h, 0x00, 1, -1.37, -1.36)

  TEST_PASSFAIL

RVTEST_CODE_END

  .data
RVTEST_DATA_BEGIN

  TEST_DATA

RVTEST_DATA_END