From: Jacob Lifshay Date: Wed, 17 May 2023 02:50:13 +0000 (-0700) Subject: rename js_toint -> toint in preparation for adding non-js fp->int tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6278eccf98aeb29e5bfd811c6b6534c7e8976ad2;p=openpower-isa.git rename js_toint -> toint in preparation for adding non-js fp->int tests --- diff --git a/src/openpower/test/fmv_fcvt/fmv_fcvt.py b/src/openpower/test/fmv_fcvt/fmv_fcvt.py index 961f0813..a3516c6f 100644 --- a/src/openpower/test/fmv_fcvt/fmv_fcvt.py +++ b/src/openpower/test/fmv_fcvt/fmv_fcvt.py @@ -16,7 +16,7 @@ def fp_bits_add(fp, amount): class FMvFCvtCases(TestAccumulatorBase): - def js_toint( + def toint( self, inp, expected=None, test_title="", inp_bits=None, signed=True, _32bit=True, ): @@ -103,128 +103,128 @@ class FMvFCvtCases(TestAccumulatorBase): # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - self.js_toint(math.inf, 0, "Inf") - self.js_toint(-math.inf, 0, "-Inf") - self.js_toint(math.nan, 0, "NaN") - self.js_toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001) - self.js_toint(0.0, 0, "zero") - self.js_toint(-0.0, 0, "-zero") - self.js_toint(min_value, 0) - self.js_toint(-min_value, 0) - self.js_toint(0.1, 0) - self.js_toint(-0.1, 0) - self.js_toint(1, 1, "one") - self.js_toint(1.1, 1, "onepointone") - self.js_toint(-1, -1, "-one") - self.js_toint(0.6, 0, "truncate positive (0.6)") - self.js_toint(1.6, 1, "truncate positive (1.6)") - self.js_toint(-0.6, 0, "truncate negative (-0.6)") - self.js_toint(-1.6, -1, "truncate negative (-1.6)") - self.js_toint(2147483647, 2147483647) - self.js_toint(2147483648, -2147483648) - self.js_toint(2147483649, -2147483647) - self.js_toint(4294967295, -1) - self.js_toint(4294967296, 0) - self.js_toint(4294967297, 1) - self.js_toint(-2147483647, -2147483647) - self.js_toint(-2147483648, -2147483648) - self.js_toint(-2147483649, 2147483647) - self.js_toint(-4294967295, 1) - self.js_toint(-4294967296, 0) - self.js_toint(-4294967297, -1) - self.js_toint(2147483648.25, -2147483648) - self.js_toint(2147483648.5, -2147483648) - self.js_toint(2147483648.75, -2147483648) - self.js_toint(4294967295.25, -1) - self.js_toint(4294967295.5, -1) - self.js_toint(4294967295.75, -1) - self.js_toint(3000000000.25, -1294967296) - self.js_toint(3000000000.5, -1294967296) - self.js_toint(3000000000.75, -1294967296) - self.js_toint(-2147483648.25, -2147483648) - self.js_toint(-2147483648.5, -2147483648) - self.js_toint(-2147483648.75, -2147483648) - self.js_toint(-4294967295.25, 1) - self.js_toint(-4294967295.5, 1) - self.js_toint(-4294967295.75, 1) - self.js_toint(-3000000000.25, 1294967296) - self.js_toint(-3000000000.5, 1294967296) - self.js_toint(-3000000000.75, 1294967296) + self.toint(math.inf, 0, "Inf") + self.toint(-math.inf, 0, "-Inf") + self.toint(math.nan, 0, "NaN") + self.toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001) + self.toint(0.0, 0, "zero") + self.toint(-0.0, 0, "-zero") + self.toint(min_value, 0) + self.toint(-min_value, 0) + self.toint(0.1, 0) + self.toint(-0.1, 0) + self.toint(1, 1, "one") + self.toint(1.1, 1, "onepointone") + self.toint(-1, -1, "-one") + self.toint(0.6, 0, "truncate positive (0.6)") + self.toint(1.6, 1, "truncate positive (1.6)") + self.toint(-0.6, 0, "truncate negative (-0.6)") + self.toint(-1.6, -1, "truncate negative (-1.6)") + self.toint(2147483647, 2147483647) + self.toint(2147483648, -2147483648) + self.toint(2147483649, -2147483647) + self.toint(4294967295, -1) + self.toint(4294967296, 0) + self.toint(4294967297, 1) + self.toint(-2147483647, -2147483647) + self.toint(-2147483648, -2147483648) + self.toint(-2147483649, 2147483647) + self.toint(-4294967295, 1) + self.toint(-4294967296, 0) + self.toint(-4294967297, -1) + self.toint(2147483648.25, -2147483648) + self.toint(2147483648.5, -2147483648) + self.toint(2147483648.75, -2147483648) + self.toint(4294967295.25, -1) + self.toint(4294967295.5, -1) + self.toint(4294967295.75, -1) + self.toint(3000000000.25, -1294967296) + self.toint(3000000000.5, -1294967296) + self.toint(3000000000.75, -1294967296) + self.toint(-2147483648.25, -2147483648) + self.toint(-2147483648.5, -2147483648) + self.toint(-2147483648.75, -2147483648) + self.toint(-4294967295.25, 1) + self.toint(-4294967295.5, 1) + self.toint(-4294967295.75, 1) + self.toint(-3000000000.25, 1294967296) + self.toint(-3000000000.5, 1294967296) + self.toint(-3000000000.75, 1294967296) base = pow(2, 64) - self.js_toint(base + 0, 0) - self.js_toint(base + 1117, 0) - self.js_toint(base + 2234, 4096) - self.js_toint(base + 3351, 4096) - self.js_toint(base + 4468, 4096) - self.js_toint(base + 5585, 4096) - self.js_toint(base + 6702, 8192) - self.js_toint(base + 7819, 8192) - self.js_toint(base + 8936, 8192) - self.js_toint(base + 10053, 8192) - self.js_toint(base + 11170, 12288) - self.js_toint(base + 12287, 12288) - self.js_toint(base + 13404, 12288) - self.js_toint(base + 14521, 16384) - self.js_toint(base + 15638, 16384) - self.js_toint(base + 16755, 16384) - self.js_toint(base + 17872, 16384) - self.js_toint(base + 18989, 20480) - self.js_toint(base + 20106, 20480) - self.js_toint(base + 21223, 20480) - self.js_toint(base + 22340, 20480) - self.js_toint(base + 23457, 24576) - self.js_toint(base + 24574, 24576) - self.js_toint(base + 25691, 24576) - self.js_toint(base + 26808, 28672) - self.js_toint(base + 27925, 28672) - self.js_toint(base + 29042, 28672) - self.js_toint(base + 30159, 28672) - self.js_toint(base + 31276, 32768) + self.toint(base + 0, 0) + self.toint(base + 1117, 0) + self.toint(base + 2234, 4096) + self.toint(base + 3351, 4096) + self.toint(base + 4468, 4096) + self.toint(base + 5585, 4096) + self.toint(base + 6702, 8192) + self.toint(base + 7819, 8192) + self.toint(base + 8936, 8192) + self.toint(base + 10053, 8192) + self.toint(base + 11170, 12288) + self.toint(base + 12287, 12288) + self.toint(base + 13404, 12288) + self.toint(base + 14521, 16384) + self.toint(base + 15638, 16384) + self.toint(base + 16755, 16384) + self.toint(base + 17872, 16384) + self.toint(base + 18989, 20480) + self.toint(base + 20106, 20480) + self.toint(base + 21223, 20480) + self.toint(base + 22340, 20480) + self.toint(base + 23457, 24576) + self.toint(base + 24574, 24576) + self.toint(base + 25691, 24576) + self.toint(base + 26808, 28672) + self.toint(base + 27925, 28672) + self.toint(base + 29042, 28672) + self.toint(base + 30159, 28672) + self.toint(base + 31276, 32768) # bignum is (2 ^ 53 - 1) * 2 ^ 31 - highest number with bit 31 set. bignum = pow(2, 84) - pow(2, 31) - self.js_toint(bignum, -pow(2, 31)) - self.js_toint(-bignum, -pow(2, 31)) - self.js_toint(2 * bignum, 0) - self.js_toint(-(2 * bignum), 0) - self.js_toint(bignum - pow(2, 31), 0) - self.js_toint(-(bignum - pow(2, 31)), 0) + self.toint(bignum, -pow(2, 31)) + self.toint(-bignum, -pow(2, 31)) + self.toint(2 * bignum, 0) + self.toint(-(2 * bignum), 0) + self.toint(bignum - pow(2, 31), 0) + self.toint(-(bignum - pow(2, 31)), 0) # max_fraction is largest number below 1. max_fraction = (1 - pow(2, -53)) - self.js_toint(max_fraction, 0) - self.js_toint(-max_fraction, 0) + self.toint(max_fraction, 0) + self.toint(-max_fraction, 0) def case_js_touint32(self): min_value = pow(2, -1074) # test cases from: # https://chromium.googlesource.com/v8/v8.git/+/d94dfc2b01f988566aa410ce871588cf23b1285d/test/mjsunit/touint32.js # with identical copyright notice as in case_js_toint32 - self.js_toint(0, 0, "0", signed=False) - self.js_toint(-0, 0, "-0", signed=False) - self.js_toint(math.inf, 0, "Infinity", signed=False) - self.js_toint(-math.inf, 0, "-Infinity", signed=False) - self.js_toint(math.nan, 0, "NaN", signed=False) - self.js_toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001, + self.toint(0, 0, "0", signed=False) + self.toint(-0, 0, "-0", signed=False) + self.toint(math.inf, 0, "Infinity", signed=False) + self.toint(-math.inf, 0, "-Infinity", signed=False) + self.toint(math.nan, 0, "NaN", signed=False) + self.toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001, signed=False) - self.js_toint(min_value, 0, "MIN", signed=False) - self.js_toint(-min_value, 0, "-MIN", signed=False) - self.js_toint(0.1, 0, "0.1", signed=False) - self.js_toint(-0.1, 0, "-0.1", signed=False) - self.js_toint(1, 1, "1", signed=False) - self.js_toint(1.1, 1, "1.1", signed=False) - self.js_toint(-1, 4294967295, "-1", signed=False) - self.js_toint(-1.1, 4294967295, "-1.1", signed=False) - self.js_toint(2147483647, 2147483647, "2147483647", signed=False) - self.js_toint(2147483648, 2147483648, "2147483648", signed=False) - self.js_toint(2147483649, 2147483649, "2147483649", signed=False) - self.js_toint(4294967295, 4294967295, "4294967295", signed=False) - self.js_toint(4294967296, 0, "4294967296", signed=False) - self.js_toint(4294967297, 1, "4294967297", signed=False) - self.js_toint(-2147483647, 2147483649, "-2147483647", signed=False) - self.js_toint(-2147483648, 2147483648, "-2147483648", signed=False) - self.js_toint(-2147483649, 2147483647, "-2147483649", signed=False) - self.js_toint(-4294967295, 1, "-4294967295", signed=False) - self.js_toint(-4294967296, 0, "-4294967296", signed=False) - self.js_toint(-4294967297, 4294967295, "-4294967297", signed=False) + self.toint(min_value, 0, "MIN", signed=False) + self.toint(-min_value, 0, "-MIN", signed=False) + self.toint(0.1, 0, "0.1", signed=False) + self.toint(-0.1, 0, "-0.1", signed=False) + self.toint(1, 1, "1", signed=False) + self.toint(1.1, 1, "1.1", signed=False) + self.toint(-1, 4294967295, "-1", signed=False) + self.toint(-1.1, 4294967295, "-1.1", signed=False) + self.toint(2147483647, 2147483647, "2147483647", signed=False) + self.toint(2147483648, 2147483648, "2147483648", signed=False) + self.toint(2147483649, 2147483649, "2147483649", signed=False) + self.toint(4294967295, 4294967295, "4294967295", signed=False) + self.toint(4294967296, 0, "4294967296", signed=False) + self.toint(4294967297, 1, "4294967297", signed=False) + self.toint(-2147483647, 2147483649, "-2147483647", signed=False) + self.toint(-2147483648, 2147483648, "-2147483648", signed=False) + self.toint(-2147483649, 2147483647, "-2147483649", signed=False) + self.toint(-4294967295, 1, "-4294967295", signed=False) + self.toint(-4294967296, 0, "-4294967296", signed=False) + self.toint(-4294967297, 4294967295, "-4294967297", signed=False) def case_js_toint64(self): # 64-bit equivalent of javascript's toint32 @@ -233,96 +233,96 @@ class FMvFCvtCases(TestAccumulatorBase): # https://chromium.googlesource.com/v8/v8.git/+/d94dfc2b01f988566aa410ce871588cf23b1285d/test/mjsunit/toint32.js # with identical copyright notice as in case_js_toint32 - self.js_toint(math.inf, 0, "Inf", _32bit=False) - self.js_toint(-math.inf, 0, "-Inf", _32bit=False) - self.js_toint(math.nan, 0, "NaN", _32bit=False) - self.js_toint(math.nan, 0, "SNaN", + self.toint(math.inf, 0, "Inf", _32bit=False) + self.toint(-math.inf, 0, "-Inf", _32bit=False) + self.toint(math.nan, 0, "NaN", _32bit=False) + self.toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001, _32bit=False) - self.js_toint(0.0, 0, "zero", _32bit=False) - self.js_toint(-0.0, 0, "-zero", _32bit=False) - self.js_toint(min_value, 0, _32bit=False) - self.js_toint(-min_value, 0, _32bit=False) - self.js_toint(0.1, 0, _32bit=False) - self.js_toint(-0.1, 0, _32bit=False) - self.js_toint(1, 1, "one", _32bit=False) - self.js_toint(1.1, 1, "onepointone", _32bit=False) - self.js_toint(-1, -1, "-one", _32bit=False) - self.js_toint(0.6, 0, "truncate positive (0.6)", _32bit=False) - self.js_toint(1.6, 1, "truncate positive (1.6)", _32bit=False) - self.js_toint(-0.6, 0, "truncate negative (-0.6)", _32bit=False) - self.js_toint(-1.6, -1, "truncate negative (-1.6)", _32bit=False) - self.js_toint(fp_bits_add(2**63, -1), _32bit=False) - self.js_toint(2**63, _32bit=False) - self.js_toint(fp_bits_add(2**63, 1), _32bit=False) - self.js_toint(fp_bits_add(2**64, -1), _32bit=False) - self.js_toint(2**64, 0, _32bit=False) - self.js_toint(fp_bits_add(2**64, 1), _32bit=False) - self.js_toint(-fp_bits_add(2**63, -1), _32bit=False) - self.js_toint(-(2**63), _32bit=False) - self.js_toint(-fp_bits_add(2**63, 1), _32bit=False) - self.js_toint(-fp_bits_add(2**64, -1), _32bit=False) - self.js_toint(-(2**64), 0, _32bit=False) - self.js_toint(-fp_bits_add(2**64, 1), _32bit=False) - self.js_toint(2147483648.25, _32bit=False) - self.js_toint(2147483648.5, _32bit=False) - self.js_toint(2147483648.75, _32bit=False) - self.js_toint(4294967295.25, _32bit=False) - self.js_toint(4294967295.5, _32bit=False) - self.js_toint(4294967295.75, _32bit=False) - self.js_toint(3000000000.25, _32bit=False) - self.js_toint(3000000000.5, _32bit=False) - self.js_toint(3000000000.75, _32bit=False) - self.js_toint(-2147483648.25, _32bit=False) - self.js_toint(-2147483648.5, _32bit=False) - self.js_toint(-2147483648.75, _32bit=False) - self.js_toint(-4294967295.25, _32bit=False) - self.js_toint(-4294967295.5, _32bit=False) - self.js_toint(-4294967295.75, _32bit=False) - self.js_toint(-3000000000.25, _32bit=False) - self.js_toint(-3000000000.5, _32bit=False) - self.js_toint(-3000000000.75, _32bit=False) + self.toint(0.0, 0, "zero", _32bit=False) + self.toint(-0.0, 0, "-zero", _32bit=False) + self.toint(min_value, 0, _32bit=False) + self.toint(-min_value, 0, _32bit=False) + self.toint(0.1, 0, _32bit=False) + self.toint(-0.1, 0, _32bit=False) + self.toint(1, 1, "one", _32bit=False) + self.toint(1.1, 1, "onepointone", _32bit=False) + self.toint(-1, -1, "-one", _32bit=False) + self.toint(0.6, 0, "truncate positive (0.6)", _32bit=False) + self.toint(1.6, 1, "truncate positive (1.6)", _32bit=False) + self.toint(-0.6, 0, "truncate negative (-0.6)", _32bit=False) + self.toint(-1.6, -1, "truncate negative (-1.6)", _32bit=False) + self.toint(fp_bits_add(2**63, -1), _32bit=False) + self.toint(2**63, _32bit=False) + self.toint(fp_bits_add(2**63, 1), _32bit=False) + self.toint(fp_bits_add(2**64, -1), _32bit=False) + self.toint(2**64, 0, _32bit=False) + self.toint(fp_bits_add(2**64, 1), _32bit=False) + self.toint(-fp_bits_add(2**63, -1), _32bit=False) + self.toint(-(2**63), _32bit=False) + self.toint(-fp_bits_add(2**63, 1), _32bit=False) + self.toint(-fp_bits_add(2**64, -1), _32bit=False) + self.toint(-(2**64), 0, _32bit=False) + self.toint(-fp_bits_add(2**64, 1), _32bit=False) + self.toint(2147483648.25, _32bit=False) + self.toint(2147483648.5, _32bit=False) + self.toint(2147483648.75, _32bit=False) + self.toint(4294967295.25, _32bit=False) + self.toint(4294967295.5, _32bit=False) + self.toint(4294967295.75, _32bit=False) + self.toint(3000000000.25, _32bit=False) + self.toint(3000000000.5, _32bit=False) + self.toint(3000000000.75, _32bit=False) + self.toint(-2147483648.25, _32bit=False) + self.toint(-2147483648.5, _32bit=False) + self.toint(-2147483648.75, _32bit=False) + self.toint(-4294967295.25, _32bit=False) + self.toint(-4294967295.5, _32bit=False) + self.toint(-4294967295.75, _32bit=False) + self.toint(-3000000000.25, _32bit=False) + self.toint(-3000000000.5, _32bit=False) + self.toint(-3000000000.75, _32bit=False) base = pow(2, 64) - self.js_toint(base + 0, _32bit=False) - self.js_toint(base + 1117, _32bit=False) - self.js_toint(base + 2234, _32bit=False) - self.js_toint(base + 3351, _32bit=False) - self.js_toint(base + 4468, _32bit=False) - self.js_toint(base + 5585, _32bit=False) - self.js_toint(base + 6702, _32bit=False) - self.js_toint(base + 7819, _32bit=False) - self.js_toint(base + 8936, _32bit=False) - self.js_toint(base + 10053, _32bit=False) - self.js_toint(base + 11170, _32bit=False) - self.js_toint(base + 12287, _32bit=False) - self.js_toint(base + 13404, _32bit=False) - self.js_toint(base + 14521, _32bit=False) - self.js_toint(base + 15638, _32bit=False) - self.js_toint(base + 16755, _32bit=False) - self.js_toint(base + 17872, _32bit=False) - self.js_toint(base + 18989, _32bit=False) - self.js_toint(base + 20106, _32bit=False) - self.js_toint(base + 21223, _32bit=False) - self.js_toint(base + 22340, _32bit=False) - self.js_toint(base + 23457, _32bit=False) - self.js_toint(base + 24574, _32bit=False) - self.js_toint(base + 25691, _32bit=False) - self.js_toint(base + 26808, _32bit=False) - self.js_toint(base + 27925, _32bit=False) - self.js_toint(base + 29042, _32bit=False) - self.js_toint(base + 30159, _32bit=False) - self.js_toint(base + 31276, _32bit=False) + self.toint(base + 0, _32bit=False) + self.toint(base + 1117, _32bit=False) + self.toint(base + 2234, _32bit=False) + self.toint(base + 3351, _32bit=False) + self.toint(base + 4468, _32bit=False) + self.toint(base + 5585, _32bit=False) + self.toint(base + 6702, _32bit=False) + self.toint(base + 7819, _32bit=False) + self.toint(base + 8936, _32bit=False) + self.toint(base + 10053, _32bit=False) + self.toint(base + 11170, _32bit=False) + self.toint(base + 12287, _32bit=False) + self.toint(base + 13404, _32bit=False) + self.toint(base + 14521, _32bit=False) + self.toint(base + 15638, _32bit=False) + self.toint(base + 16755, _32bit=False) + self.toint(base + 17872, _32bit=False) + self.toint(base + 18989, _32bit=False) + self.toint(base + 20106, _32bit=False) + self.toint(base + 21223, _32bit=False) + self.toint(base + 22340, _32bit=False) + self.toint(base + 23457, _32bit=False) + self.toint(base + 24574, _32bit=False) + self.toint(base + 25691, _32bit=False) + self.toint(base + 26808, _32bit=False) + self.toint(base + 27925, _32bit=False) + self.toint(base + 29042, _32bit=False) + self.toint(base + 30159, _32bit=False) + self.toint(base + 31276, _32bit=False) # bignum is (2 ^ 53 - 1) * 2 ^ 31 - highest number with bit 31 set. bignum = pow(2, 84) - pow(2, 31) - self.js_toint(bignum, _32bit=False) - self.js_toint(-bignum, _32bit=False) - self.js_toint(2 * bignum, _32bit=False) - self.js_toint(-(2 * bignum), _32bit=False) - self.js_toint(bignum - pow(2, 31), _32bit=False) - self.js_toint(-(bignum - pow(2, 31)), _32bit=False) + self.toint(bignum, _32bit=False) + self.toint(-bignum, _32bit=False) + self.toint(2 * bignum, _32bit=False) + self.toint(-(2 * bignum), _32bit=False) + self.toint(bignum - pow(2, 31), _32bit=False) + self.toint(-(bignum - pow(2, 31)), _32bit=False) # max_fraction is largest number below 1. max_fraction = (1 - pow(2, -53)) - self.js_toint(max_fraction, 0, _32bit=False) - self.js_toint(-max_fraction, 0, _32bit=False) + self.toint(max_fraction, 0, _32bit=False) + self.toint(-max_fraction, 0, _32bit=False) def case_js_touint64(self): # 64-bit equivalent of javascript's touint32 @@ -330,33 +330,33 @@ class FMvFCvtCases(TestAccumulatorBase): # test cases derived from: # https://chromium.googlesource.com/v8/v8.git/+/d94dfc2b01f988566aa410ce871588cf23b1285d/test/mjsunit/touint32.js # with identical copyright notice as in case_js_toint32 - self.js_toint(0, 0, "0", signed=False, _32bit=False) - self.js_toint(-0, 0, "-0", signed=False, _32bit=False) - self.js_toint(math.inf, 0, "Infinity", signed=False, _32bit=False) - self.js_toint(-math.inf, 0, "-Infinity", signed=False, _32bit=False) - self.js_toint(math.nan, 0, "NaN", signed=False, _32bit=False) - self.js_toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001, + self.toint(0, 0, "0", signed=False, _32bit=False) + self.toint(-0, 0, "-0", signed=False, _32bit=False) + self.toint(math.inf, 0, "Infinity", signed=False, _32bit=False) + self.toint(-math.inf, 0, "-Infinity", signed=False, _32bit=False) + self.toint(math.nan, 0, "NaN", signed=False, _32bit=False) + self.toint(math.nan, 0, "SNaN", inp_bits=0x7ff0_0000_0000_0001, signed=False, _32bit=False) - self.js_toint(min_value, 0, "MIN", signed=False, _32bit=False) - self.js_toint(-min_value, 0, "-MIN", signed=False, _32bit=False) - self.js_toint(0.1, 0, "0.1", signed=False, _32bit=False) - self.js_toint(-0.1, 0, "-0.1", signed=False, _32bit=False) - self.js_toint(1, 1, "1", signed=False, _32bit=False) - self.js_toint(1.1, 1, "1.1", signed=False, _32bit=False) - self.js_toint(-1, 2**64 - 1, "-1", signed=False, _32bit=False) - self.js_toint(-1.1, 2**64 - 1, "-1.1", signed=False, _32bit=False) - self.js_toint(fp_bits_add(2**63, -1), signed=False, _32bit=False) - self.js_toint(2**63, signed=False, _32bit=False) - self.js_toint(fp_bits_add(2**63, 1), signed=False, _32bit=False) - self.js_toint(fp_bits_add(2**64, -1), signed=False, _32bit=False) - self.js_toint(2**64, 0, signed=False, _32bit=False) - self.js_toint(fp_bits_add(2**64, 1), signed=False, _32bit=False) - self.js_toint(-fp_bits_add(2**63, -1), signed=False, _32bit=False) - self.js_toint(-(2**63), signed=False, _32bit=False) - self.js_toint(-fp_bits_add(2**63, 1), signed=False, _32bit=False) - self.js_toint(-fp_bits_add(2**64, -1), signed=False, _32bit=False) - self.js_toint(-(2**64), 0, signed=False, _32bit=False) - self.js_toint(-fp_bits_add(2**64, 1), signed=False, _32bit=False) + self.toint(min_value, 0, "MIN", signed=False, _32bit=False) + self.toint(-min_value, 0, "-MIN", signed=False, _32bit=False) + self.toint(0.1, 0, "0.1", signed=False, _32bit=False) + self.toint(-0.1, 0, "-0.1", signed=False, _32bit=False) + self.toint(1, 1, "1", signed=False, _32bit=False) + self.toint(1.1, 1, "1.1", signed=False, _32bit=False) + self.toint(-1, 2**64 - 1, "-1", signed=False, _32bit=False) + self.toint(-1.1, 2**64 - 1, "-1.1", signed=False, _32bit=False) + self.toint(fp_bits_add(2**63, -1), signed=False, _32bit=False) + self.toint(2**63, signed=False, _32bit=False) + self.toint(fp_bits_add(2**63, 1), signed=False, _32bit=False) + self.toint(fp_bits_add(2**64, -1), signed=False, _32bit=False) + self.toint(2**64, 0, signed=False, _32bit=False) + self.toint(fp_bits_add(2**64, 1), signed=False, _32bit=False) + self.toint(-fp_bits_add(2**63, -1), signed=False, _32bit=False) + self.toint(-(2**63), signed=False, _32bit=False) + self.toint(-fp_bits_add(2**63, 1), signed=False, _32bit=False) + self.toint(-fp_bits_add(2**64, -1), signed=False, _32bit=False) + self.toint(-(2**64), 0, signed=False, _32bit=False) + self.toint(-fp_bits_add(2**64, 1), signed=False, _32bit=False) class SVP64FMvFCvtCases(TestAccumulatorBase):