aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uf/fmin.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-03-18 16:38:57 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-03-18 16:38:57 -0700
commit7e1460032cf6f522ce4bc7e8a347c1f08a4476d2 (patch)
treeb751145ebe5b399ee0cacf67aea9513eb6b15ccf /isa/rv64uf/fmin.S
parentb3b1ebc672d3cc83cfda5799c05d39f97a9796a1 (diff)
downloadriscv-tests-7e1460032cf6f522ce4bc7e8a347c1f08a4476d2.zip
riscv-tests-7e1460032cf6f522ce4bc7e8a347c1f08a4476d2.tar.gz
riscv-tests-7e1460032cf6f522ce4bc7e8a347c1f08a4476d2.tar.bz2
Check FP corner cases and flags
Diffstat (limited to 'isa/rv64uf/fmin.S')
-rw-r--r--isa/rv64uf/fmin.S54
1 files changed, 27 insertions, 27 deletions
diff --git a/isa/rv64uf/fmin.S b/isa/rv64uf/fmin.S
index f9e8dda..80eecf6 100644
--- a/isa/rv64uf/fmin.S
+++ b/isa/rv64uf/fmin.S
@@ -15,33 +15,33 @@ RVTEST_CODE_BEGIN
# Arithmetic tests
#-------------------------------------------------------------
- TEST_FP_OP2_S( 2, fmin.s, 1.0, 2.5, 1.0 );
- TEST_FP_OP2_S( 3, fmin.s, -1235.1, -1235.1, 1.1 );
- TEST_FP_OP2_S( 4, fmin.s, -1235.1, 1.1, -1235.1 );
- TEST_FP_OP2_S( 5, fmin.s, -1235.1, NaN, -1235.1 );
- TEST_FP_OP2_S( 6, fmin.s, 0.00000001, 3.14159265, 0.00000001 );
- TEST_FP_OP2_S( 7, fmin.s, -2.0, -1.0, -2.0 );
-
- TEST_FP_OP2_S(12, fmax.s, 2.5, 2.5, 1.0 );
- TEST_FP_OP2_S(13, fmax.s, 1.1, -1235.1, 1.1 );
- TEST_FP_OP2_S(14, fmax.s, 1.1, 1.1, -1235.1 );
- TEST_FP_OP2_S(15, fmax.s, -1235.1, NaN, -1235.1 );
- TEST_FP_OP2_S(16, fmax.s, 3.14159265, 3.14159265, 0.00000001 );
- TEST_FP_OP2_S(17, fmax.s, -1.0, -1.0, -2.0 );
-
- TEST_FP_OP2_D(22, fmin.d, 1.0, 2.5, 1.0 );
- TEST_FP_OP2_D(23, fmin.d, -1235.1, -1235.1, 1.1 );
- TEST_FP_OP2_D(24, fmin.d, -1235.1, 1.1, -1235.1 );
- TEST_FP_OP2_D(25, fmin.d, -1235.1, NaN, -1235.1 );
- TEST_FP_OP2_D(26, fmin.d, 0.00000001, 3.14159265, 0.00000001 );
- TEST_FP_OP2_D(27, fmin.d, -2.0, -1.0, -2.0 );
-
- TEST_FP_OP2_D(32, fmax.d, 2.5, 2.5, 1.0 );
- TEST_FP_OP2_D(33, fmax.d, 1.1, -1235.1, 1.1 );
- TEST_FP_OP2_D(34, fmax.d, 1.1, 1.1, -1235.1 );
- TEST_FP_OP2_D(35, fmax.d, -1235.1, NaN, -1235.1 );
- TEST_FP_OP2_D(36, fmax.d, 3.14159265, 3.14159265, 0.00000001 );
- TEST_FP_OP2_D(37, fmax.d, -1.0, -1.0, -2.0 );
+ TEST_FP_OP2_S( 2, fmin.s, 0, 1.0, 2.5, 1.0 );
+ TEST_FP_OP2_S( 3, fmin.s, 0, -1235.1, -1235.1, 1.1 );
+ TEST_FP_OP2_S( 4, fmin.s, 0, -1235.1, 1.1, -1235.1 );
+ TEST_FP_OP2_S( 5, fmin.s, 0, -1235.1, NaN, -1235.1 );
+ TEST_FP_OP2_S( 6, fmin.s, 0, 0.00000001, 3.14159265, 0.00000001 );
+ TEST_FP_OP2_S( 7, fmin.s, 0, -2.0, -1.0, -2.0 );
+
+ TEST_FP_OP2_S(12, fmax.s, 0, 2.5, 2.5, 1.0 );
+ TEST_FP_OP2_S(13, fmax.s, 0, 1.1, -1235.1, 1.1 );
+ TEST_FP_OP2_S(14, fmax.s, 0, 1.1, 1.1, -1235.1 );
+ TEST_FP_OP2_S(15, fmax.s, 0, -1235.1, NaN, -1235.1 );
+ TEST_FP_OP2_S(16, fmax.s, 0, 3.14159265, 3.14159265, 0.00000001 );
+ TEST_FP_OP2_S(17, fmax.s, 0, -1.0, -1.0, -2.0 );
+
+ TEST_FP_OP2_D(22, fmin.d, 0, 1.0, 2.5, 1.0 );
+ TEST_FP_OP2_D(23, fmin.d, 0, -1235.1, -1235.1, 1.1 );
+ TEST_FP_OP2_D(24, fmin.d, 0, -1235.1, 1.1, -1235.1 );
+ TEST_FP_OP2_D(25, fmin.d, 0, -1235.1, NaN, -1235.1 );
+ TEST_FP_OP2_D(26, fmin.d, 0, 0.00000001, 3.14159265, 0.00000001 );
+ TEST_FP_OP2_D(27, fmin.d, 0, -2.0, -1.0, -2.0 );
+
+ TEST_FP_OP2_D(32, fmax.d, 0, 2.5, 2.5, 1.0 );
+ TEST_FP_OP2_D(33, fmax.d, 0, 1.1, -1235.1, 1.1 );
+ TEST_FP_OP2_D(34, fmax.d, 0, 1.1, 1.1, -1235.1 );
+ TEST_FP_OP2_D(35, fmax.d, 0, -1235.1, NaN, -1235.1 );
+ TEST_FP_OP2_D(36, fmax.d, 0, 3.14159265, 3.14159265, 0.00000001 );
+ TEST_FP_OP2_D(37, fmax.d, 0, -1.0, -1.0, -2.0 );
TEST_PASSFAIL