aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uzfh/fcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64uzfh/fcmp.S')
-rw-r--r--isa/rv64uzfh/fcmp.S37
1 files changed, 37 insertions, 0 deletions
diff --git a/isa/rv64uzfh/fcmp.S b/isa/rv64uzfh/fcmp.S
new file mode 100644
index 0000000..9f8a4e3
--- /dev/null
+++ b/isa/rv64uzfh/fcmp.S
@@ -0,0 +1,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