From cd667e48284dce28cd4c6a41eb1f0e62245eff92 Mon Sep 17 00:00:00 2001 From: Pierre Roux Date: Sat, 2 Sep 2023 18:32:46 +0200 Subject: [PATCH] Remove redundant tests --- test-suite/primitive/float/add.v | 63 -- test-suite/primitive/float/classify.v | 20 - test-suite/primitive/float/compare.v | 544 ++++++------------ test-suite/primitive/float/div.v | 54 -- test-suite/primitive/float/double_rounding.v | 27 - test-suite/primitive/float/frexp.v | 28 - test-suite/primitive/float/gen_compare.sh | 15 +- test-suite/primitive/float/ldexp.v | 10 - test-suite/primitive/float/mul.v | 52 -- test-suite/primitive/float/next_up_down.v | 137 ----- test-suite/primitive/float/normfr_mantissa.v | 16 - test-suite/primitive/float/spec_conv.v | 46 -- test-suite/primitive/float/sqrt.v | 36 +- test-suite/primitive/float/sub.v | 39 -- .../primitive/float/valid_binary_conv.v | 46 -- 15 files changed, 174 insertions(+), 959 deletions(-) delete mode 100644 test-suite/primitive/float/add.v delete mode 100644 test-suite/primitive/float/frexp.v delete mode 100644 test-suite/primitive/float/spec_conv.v delete mode 100644 test-suite/primitive/float/valid_binary_conv.v diff --git a/test-suite/primitive/float/add.v b/test-suite/primitive/float/add.v deleted file mode 100644 index 21488c271b27..000000000000 --- a/test-suite/primitive/float/add.v +++ /dev/null @@ -1,63 +0,0 @@ -Require Import ZArith Uint63 Floats. - -Open Scope float_scope. - -Definition two := Eval compute in of_uint63 2%uint63. -Definition three := Eval compute in of_uint63 3%uint63. -Definition five := Eval compute in of_uint63 5%uint63. - -Check (eq_refl : two + three = five). -Check (eq_refl five <: two + three = five). -Check (eq_refl five <<: two + three = five). -Definition compute1 := Eval compute in two + three. -Check (eq_refl compute1 : five = five). - -Definition huge := Eval compute in Z.ldexp one 1023%Z. -Definition tiny := Eval compute in Z.ldexp one (-1023)%Z. - -Check (eq_refl : huge + tiny = huge). -Check (eq_refl huge <: huge + tiny = huge). -Check (eq_refl huge <<: huge + tiny = huge). -Definition compute2 := Eval compute in huge + tiny. -Check (eq_refl compute2 : huge = huge). - -Check (eq_refl : huge + huge = infinity). -Check (eq_refl infinity <: huge + huge = infinity). -Check (eq_refl infinity <<: huge + huge = infinity). -Definition compute3 := Eval compute in huge + huge. -Check (eq_refl compute3 : infinity = infinity). - -Check (eq_refl : one + nan = nan). -Check (eq_refl nan <: one + nan = nan). -Check (eq_refl nan <<: one + nan = nan). -Definition compute4 := Eval compute in one + nan. -Check (eq_refl compute4 : nan = nan). - -Check (eq_refl : infinity + infinity = infinity). -Check (eq_refl infinity <: infinity + infinity = infinity). -Check (eq_refl infinity <<: infinity + infinity = infinity). -Definition compute5 := Eval compute in infinity + infinity. -Check (eq_refl compute5 : infinity = infinity). - -Check (eq_refl : infinity + neg_infinity = nan). -Check (eq_refl nan <: infinity + neg_infinity = nan). -Check (eq_refl nan <<: infinity + neg_infinity = nan). -Definition compute6 := Eval compute in infinity + neg_infinity. -Check (eq_refl compute6 : nan = nan). - -Check (eq_refl : zero + zero = zero). -Check (eq_refl zero <: zero + zero = zero). -Check (eq_refl zero <<: zero + zero = zero). -Check (eq_refl : neg_zero + zero = zero). -Check (eq_refl zero <: neg_zero + zero = zero). -Check (eq_refl zero <<: neg_zero + zero = zero). -Check (eq_refl : neg_zero + neg_zero = neg_zero). -Check (eq_refl neg_zero <: neg_zero + neg_zero = neg_zero). -Check (eq_refl neg_zero <<: neg_zero + neg_zero = neg_zero). -Check (eq_refl : zero + neg_zero = zero). -Check (eq_refl zero <: zero + neg_zero = zero). -Check (eq_refl zero <<: zero + neg_zero = zero). - -Check (eq_refl : huge + neg_infinity = neg_infinity). -Check (eq_refl neg_infinity <: huge + neg_infinity = neg_infinity). -Check (eq_refl neg_infinity <<: huge + neg_infinity = neg_infinity). diff --git a/test-suite/primitive/float/classify.v b/test-suite/primitive/float/classify.v index 132a379af06f..b8ecf2c7ee1c 100644 --- a/test-suite/primitive/float/classify.v +++ b/test-suite/primitive/float/classify.v @@ -11,23 +11,3 @@ Check (eq_refl : classify neg_zero = NZero). Check (eq_refl : classify infinity = PInf). Check (eq_refl : classify neg_infinity = NInf). Check (eq_refl : classify nan = NaN). - -Check (eq_refl PNormal <: classify one = PNormal). -Check (eq_refl NNormal <: classify (- one)%float = NNormal). -Check (eq_refl PSubn <: classify epsilon = PSubn). -Check (eq_refl NSubn <: classify (- epsilon)%float = NSubn). -Check (eq_refl PZero <: classify zero = PZero). -Check (eq_refl NZero <: classify neg_zero = NZero). -Check (eq_refl PInf <: classify infinity = PInf). -Check (eq_refl NInf <: classify neg_infinity = NInf). -Check (eq_refl NaN <: classify nan = NaN). - -Check (eq_refl PNormal <<: classify one = PNormal). -Check (eq_refl NNormal <<: classify (- one)%float = NNormal). -Check (eq_refl PSubn <<: classify epsilon = PSubn). -Check (eq_refl NSubn <<: classify (- epsilon)%float = NSubn). -Check (eq_refl PZero <<: classify zero = PZero). -Check (eq_refl NZero <<: classify neg_zero = NZero). -Check (eq_refl PInf <<: classify infinity = PInf). -Check (eq_refl NInf <<: classify neg_infinity = NInf). -Check (eq_refl NaN <<: classify nan = NaN). diff --git a/test-suite/primitive/float/compare.v b/test-suite/primitive/float/compare.v index 0e28b25d76e4..739d4bd96fee 100644 --- a/test-suite/primitive/float/compare.v +++ b/test-suite/primitive/float/compare.v @@ -6,380 +6,170 @@ Definition min_denorm := Eval compute in Z.ldexp one (-1074)%Z. Definition min_norm := Eval compute in Z.ldexp one (-1024)%Z. -Check (eq_refl false : nan =? nan = false). -Check (eq_refl false : nan =? nan = false). -Check (eq_refl false : nan &2 "genTest expects 10 arguments" fi - TACTICS=(":" "<:" "<<:") OPS=("=?" "