Commit fc2d9cdf authored by Michael Munday's avatar Michael Munday

cmd/compile: remove underscore from variable names in constant comparison test

The leading underscores aren't necessary.

Change-Id: I1d4c4b681e2a29ef40a0a6cf705c3b17a49c9f65
Reviewed-on: https://go-review.googlesource.com/40873
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 273f4497
......@@ -13,12 +13,12 @@ import (
type result struct{ l, e, r bool }
var (
_eq = result{l: false, e: true, r: false}
_ne = result{l: true, e: false, r: true}
_lt = result{l: true, e: false, r: false}
_le = result{l: true, e: true, r: false}
_gt = result{l: false, e: false, r: true}
_ge = result{l: false, e: true, r: true}
eq = result{l: false, e: true, r: false}
ne = result{l: true, e: false, r: true}
lt = result{l: true, e: false, r: false}
le = result{l: true, e: true, r: false}
gt = result{l: false, e: false, r: true}
ge = result{l: false, e: true, r: true}
)
// uint64 tests
......@@ -227,174 +227,174 @@ var uint64_tests = []struct {
exp result // expected results
fn func(uint64) bool
}{
{idx: 0, exp: _lt, fn: lt_0_uint64},
{idx: 0, exp: _le, fn: le_0_uint64},
{idx: 0, exp: _gt, fn: gt_0_uint64},
{idx: 0, exp: _ge, fn: ge_0_uint64},
{idx: 0, exp: _eq, fn: eq_0_uint64},
{idx: 0, exp: _ne, fn: ne_0_uint64},
{idx: 1, exp: _lt, fn: lt_1_uint64},
{idx: 1, exp: _le, fn: le_1_uint64},
{idx: 1, exp: _gt, fn: gt_1_uint64},
{idx: 1, exp: _ge, fn: ge_1_uint64},
{idx: 1, exp: _eq, fn: eq_1_uint64},
{idx: 1, exp: _ne, fn: ne_1_uint64},
{idx: 2, exp: _lt, fn: lt_126_uint64},
{idx: 2, exp: _le, fn: le_126_uint64},
{idx: 2, exp: _gt, fn: gt_126_uint64},
{idx: 2, exp: _ge, fn: ge_126_uint64},
{idx: 2, exp: _eq, fn: eq_126_uint64},
{idx: 2, exp: _ne, fn: ne_126_uint64},
{idx: 3, exp: _lt, fn: lt_127_uint64},
{idx: 3, exp: _le, fn: le_127_uint64},
{idx: 3, exp: _gt, fn: gt_127_uint64},
{idx: 3, exp: _ge, fn: ge_127_uint64},
{idx: 3, exp: _eq, fn: eq_127_uint64},
{idx: 3, exp: _ne, fn: ne_127_uint64},
{idx: 4, exp: _lt, fn: lt_128_uint64},
{idx: 4, exp: _le, fn: le_128_uint64},
{idx: 4, exp: _gt, fn: gt_128_uint64},
{idx: 4, exp: _ge, fn: ge_128_uint64},
{idx: 4, exp: _eq, fn: eq_128_uint64},
{idx: 4, exp: _ne, fn: ne_128_uint64},
{idx: 5, exp: _lt, fn: lt_254_uint64},
{idx: 5, exp: _le, fn: le_254_uint64},
{idx: 5, exp: _gt, fn: gt_254_uint64},
{idx: 5, exp: _ge, fn: ge_254_uint64},
{idx: 5, exp: _eq, fn: eq_254_uint64},
{idx: 5, exp: _ne, fn: ne_254_uint64},
{idx: 6, exp: _lt, fn: lt_255_uint64},
{idx: 6, exp: _le, fn: le_255_uint64},
{idx: 6, exp: _gt, fn: gt_255_uint64},
{idx: 6, exp: _ge, fn: ge_255_uint64},
{idx: 6, exp: _eq, fn: eq_255_uint64},
{idx: 6, exp: _ne, fn: ne_255_uint64},
{idx: 7, exp: _lt, fn: lt_256_uint64},
{idx: 7, exp: _le, fn: le_256_uint64},
{idx: 7, exp: _gt, fn: gt_256_uint64},
{idx: 7, exp: _ge, fn: ge_256_uint64},
{idx: 7, exp: _eq, fn: eq_256_uint64},
{idx: 7, exp: _ne, fn: ne_256_uint64},
{idx: 8, exp: _lt, fn: lt_32766_uint64},
{idx: 8, exp: _le, fn: le_32766_uint64},
{idx: 8, exp: _gt, fn: gt_32766_uint64},
{idx: 8, exp: _ge, fn: ge_32766_uint64},
{idx: 8, exp: _eq, fn: eq_32766_uint64},
{idx: 8, exp: _ne, fn: ne_32766_uint64},
{idx: 9, exp: _lt, fn: lt_32767_uint64},
{idx: 9, exp: _le, fn: le_32767_uint64},
{idx: 9, exp: _gt, fn: gt_32767_uint64},
{idx: 9, exp: _ge, fn: ge_32767_uint64},
{idx: 9, exp: _eq, fn: eq_32767_uint64},
{idx: 9, exp: _ne, fn: ne_32767_uint64},
{idx: 10, exp: _lt, fn: lt_32768_uint64},
{idx: 10, exp: _le, fn: le_32768_uint64},
{idx: 10, exp: _gt, fn: gt_32768_uint64},
{idx: 10, exp: _ge, fn: ge_32768_uint64},
{idx: 10, exp: _eq, fn: eq_32768_uint64},
{idx: 10, exp: _ne, fn: ne_32768_uint64},
{idx: 11, exp: _lt, fn: lt_65534_uint64},
{idx: 11, exp: _le, fn: le_65534_uint64},
{idx: 11, exp: _gt, fn: gt_65534_uint64},
{idx: 11, exp: _ge, fn: ge_65534_uint64},
{idx: 11, exp: _eq, fn: eq_65534_uint64},
{idx: 11, exp: _ne, fn: ne_65534_uint64},
{idx: 12, exp: _lt, fn: lt_65535_uint64},
{idx: 12, exp: _le, fn: le_65535_uint64},
{idx: 12, exp: _gt, fn: gt_65535_uint64},
{idx: 12, exp: _ge, fn: ge_65535_uint64},
{idx: 12, exp: _eq, fn: eq_65535_uint64},
{idx: 12, exp: _ne, fn: ne_65535_uint64},
{idx: 13, exp: _lt, fn: lt_65536_uint64},
{idx: 13, exp: _le, fn: le_65536_uint64},
{idx: 13, exp: _gt, fn: gt_65536_uint64},
{idx: 13, exp: _ge, fn: ge_65536_uint64},
{idx: 13, exp: _eq, fn: eq_65536_uint64},
{idx: 13, exp: _ne, fn: ne_65536_uint64},
{idx: 14, exp: _lt, fn: lt_2147483646_uint64},
{idx: 14, exp: _le, fn: le_2147483646_uint64},
{idx: 14, exp: _gt, fn: gt_2147483646_uint64},
{idx: 14, exp: _ge, fn: ge_2147483646_uint64},
{idx: 14, exp: _eq, fn: eq_2147483646_uint64},
{idx: 14, exp: _ne, fn: ne_2147483646_uint64},
{idx: 15, exp: _lt, fn: lt_2147483647_uint64},
{idx: 15, exp: _le, fn: le_2147483647_uint64},
{idx: 15, exp: _gt, fn: gt_2147483647_uint64},
{idx: 15, exp: _ge, fn: ge_2147483647_uint64},
{idx: 15, exp: _eq, fn: eq_2147483647_uint64},
{idx: 15, exp: _ne, fn: ne_2147483647_uint64},
{idx: 16, exp: _lt, fn: lt_2147483648_uint64},
{idx: 16, exp: _le, fn: le_2147483648_uint64},
{idx: 16, exp: _gt, fn: gt_2147483648_uint64},
{idx: 16, exp: _ge, fn: ge_2147483648_uint64},
{idx: 16, exp: _eq, fn: eq_2147483648_uint64},
{idx: 16, exp: _ne, fn: ne_2147483648_uint64},
{idx: 17, exp: _lt, fn: lt_4278190080_uint64},
{idx: 17, exp: _le, fn: le_4278190080_uint64},
{idx: 17, exp: _gt, fn: gt_4278190080_uint64},
{idx: 17, exp: _ge, fn: ge_4278190080_uint64},
{idx: 17, exp: _eq, fn: eq_4278190080_uint64},
{idx: 17, exp: _ne, fn: ne_4278190080_uint64},
{idx: 18, exp: _lt, fn: lt_4294967294_uint64},
{idx: 18, exp: _le, fn: le_4294967294_uint64},
{idx: 18, exp: _gt, fn: gt_4294967294_uint64},
{idx: 18, exp: _ge, fn: ge_4294967294_uint64},
{idx: 18, exp: _eq, fn: eq_4294967294_uint64},
{idx: 18, exp: _ne, fn: ne_4294967294_uint64},
{idx: 19, exp: _lt, fn: lt_4294967295_uint64},
{idx: 19, exp: _le, fn: le_4294967295_uint64},
{idx: 19, exp: _gt, fn: gt_4294967295_uint64},
{idx: 19, exp: _ge, fn: ge_4294967295_uint64},
{idx: 19, exp: _eq, fn: eq_4294967295_uint64},
{idx: 19, exp: _ne, fn: ne_4294967295_uint64},
{idx: 20, exp: _lt, fn: lt_4294967296_uint64},
{idx: 20, exp: _le, fn: le_4294967296_uint64},
{idx: 20, exp: _gt, fn: gt_4294967296_uint64},
{idx: 20, exp: _ge, fn: ge_4294967296_uint64},
{idx: 20, exp: _eq, fn: eq_4294967296_uint64},
{idx: 20, exp: _ne, fn: ne_4294967296_uint64},
{idx: 21, exp: _lt, fn: lt_1095216660480_uint64},
{idx: 21, exp: _le, fn: le_1095216660480_uint64},
{idx: 21, exp: _gt, fn: gt_1095216660480_uint64},
{idx: 21, exp: _ge, fn: ge_1095216660480_uint64},
{idx: 21, exp: _eq, fn: eq_1095216660480_uint64},
{idx: 21, exp: _ne, fn: ne_1095216660480_uint64},
{idx: 22, exp: _lt, fn: lt_9223372036854775806_uint64},
{idx: 22, exp: _le, fn: le_9223372036854775806_uint64},
{idx: 22, exp: _gt, fn: gt_9223372036854775806_uint64},
{idx: 22, exp: _ge, fn: ge_9223372036854775806_uint64},
{idx: 22, exp: _eq, fn: eq_9223372036854775806_uint64},
{idx: 22, exp: _ne, fn: ne_9223372036854775806_uint64},
{idx: 23, exp: _lt, fn: lt_9223372036854775807_uint64},
{idx: 23, exp: _le, fn: le_9223372036854775807_uint64},
{idx: 23, exp: _gt, fn: gt_9223372036854775807_uint64},
{idx: 23, exp: _ge, fn: ge_9223372036854775807_uint64},
{idx: 23, exp: _eq, fn: eq_9223372036854775807_uint64},
{idx: 23, exp: _ne, fn: ne_9223372036854775807_uint64},
{idx: 24, exp: _lt, fn: lt_9223372036854775808_uint64},
{idx: 24, exp: _le, fn: le_9223372036854775808_uint64},
{idx: 24, exp: _gt, fn: gt_9223372036854775808_uint64},
{idx: 24, exp: _ge, fn: ge_9223372036854775808_uint64},
{idx: 24, exp: _eq, fn: eq_9223372036854775808_uint64},
{idx: 24, exp: _ne, fn: ne_9223372036854775808_uint64},
{idx: 25, exp: _lt, fn: lt_18374686479671623680_uint64},
{idx: 25, exp: _le, fn: le_18374686479671623680_uint64},
{idx: 25, exp: _gt, fn: gt_18374686479671623680_uint64},
{idx: 25, exp: _ge, fn: ge_18374686479671623680_uint64},
{idx: 25, exp: _eq, fn: eq_18374686479671623680_uint64},
{idx: 25, exp: _ne, fn: ne_18374686479671623680_uint64},
{idx: 26, exp: _lt, fn: lt_18446744073709551614_uint64},
{idx: 26, exp: _le, fn: le_18446744073709551614_uint64},
{idx: 26, exp: _gt, fn: gt_18446744073709551614_uint64},
{idx: 26, exp: _ge, fn: ge_18446744073709551614_uint64},
{idx: 26, exp: _eq, fn: eq_18446744073709551614_uint64},
{idx: 26, exp: _ne, fn: ne_18446744073709551614_uint64},
{idx: 27, exp: _lt, fn: lt_18446744073709551615_uint64},
{idx: 27, exp: _le, fn: le_18446744073709551615_uint64},
{idx: 27, exp: _gt, fn: gt_18446744073709551615_uint64},
{idx: 27, exp: _ge, fn: ge_18446744073709551615_uint64},
{idx: 27, exp: _eq, fn: eq_18446744073709551615_uint64},
{idx: 27, exp: _ne, fn: ne_18446744073709551615_uint64},
{idx: 0, exp: lt, fn: lt_0_uint64},
{idx: 0, exp: le, fn: le_0_uint64},
{idx: 0, exp: gt, fn: gt_0_uint64},
{idx: 0, exp: ge, fn: ge_0_uint64},
{idx: 0, exp: eq, fn: eq_0_uint64},
{idx: 0, exp: ne, fn: ne_0_uint64},
{idx: 1, exp: lt, fn: lt_1_uint64},
{idx: 1, exp: le, fn: le_1_uint64},
{idx: 1, exp: gt, fn: gt_1_uint64},
{idx: 1, exp: ge, fn: ge_1_uint64},
{idx: 1, exp: eq, fn: eq_1_uint64},
{idx: 1, exp: ne, fn: ne_1_uint64},
{idx: 2, exp: lt, fn: lt_126_uint64},
{idx: 2, exp: le, fn: le_126_uint64},
{idx: 2, exp: gt, fn: gt_126_uint64},
{idx: 2, exp: ge, fn: ge_126_uint64},
{idx: 2, exp: eq, fn: eq_126_uint64},
{idx: 2, exp: ne, fn: ne_126_uint64},
{idx: 3, exp: lt, fn: lt_127_uint64},
{idx: 3, exp: le, fn: le_127_uint64},
{idx: 3, exp: gt, fn: gt_127_uint64},
{idx: 3, exp: ge, fn: ge_127_uint64},
{idx: 3, exp: eq, fn: eq_127_uint64},
{idx: 3, exp: ne, fn: ne_127_uint64},
{idx: 4, exp: lt, fn: lt_128_uint64},
{idx: 4, exp: le, fn: le_128_uint64},
{idx: 4, exp: gt, fn: gt_128_uint64},
{idx: 4, exp: ge, fn: ge_128_uint64},
{idx: 4, exp: eq, fn: eq_128_uint64},
{idx: 4, exp: ne, fn: ne_128_uint64},
{idx: 5, exp: lt, fn: lt_254_uint64},
{idx: 5, exp: le, fn: le_254_uint64},
{idx: 5, exp: gt, fn: gt_254_uint64},
{idx: 5, exp: ge, fn: ge_254_uint64},
{idx: 5, exp: eq, fn: eq_254_uint64},
{idx: 5, exp: ne, fn: ne_254_uint64},
{idx: 6, exp: lt, fn: lt_255_uint64},
{idx: 6, exp: le, fn: le_255_uint64},
{idx: 6, exp: gt, fn: gt_255_uint64},
{idx: 6, exp: ge, fn: ge_255_uint64},
{idx: 6, exp: eq, fn: eq_255_uint64},
{idx: 6, exp: ne, fn: ne_255_uint64},
{idx: 7, exp: lt, fn: lt_256_uint64},
{idx: 7, exp: le, fn: le_256_uint64},
{idx: 7, exp: gt, fn: gt_256_uint64},
{idx: 7, exp: ge, fn: ge_256_uint64},
{idx: 7, exp: eq, fn: eq_256_uint64},
{idx: 7, exp: ne, fn: ne_256_uint64},
{idx: 8, exp: lt, fn: lt_32766_uint64},
{idx: 8, exp: le, fn: le_32766_uint64},
{idx: 8, exp: gt, fn: gt_32766_uint64},
{idx: 8, exp: ge, fn: ge_32766_uint64},
{idx: 8, exp: eq, fn: eq_32766_uint64},
{idx: 8, exp: ne, fn: ne_32766_uint64},
{idx: 9, exp: lt, fn: lt_32767_uint64},
{idx: 9, exp: le, fn: le_32767_uint64},
{idx: 9, exp: gt, fn: gt_32767_uint64},
{idx: 9, exp: ge, fn: ge_32767_uint64},
{idx: 9, exp: eq, fn: eq_32767_uint64},
{idx: 9, exp: ne, fn: ne_32767_uint64},
{idx: 10, exp: lt, fn: lt_32768_uint64},
{idx: 10, exp: le, fn: le_32768_uint64},
{idx: 10, exp: gt, fn: gt_32768_uint64},
{idx: 10, exp: ge, fn: ge_32768_uint64},
{idx: 10, exp: eq, fn: eq_32768_uint64},
{idx: 10, exp: ne, fn: ne_32768_uint64},
{idx: 11, exp: lt, fn: lt_65534_uint64},
{idx: 11, exp: le, fn: le_65534_uint64},
{idx: 11, exp: gt, fn: gt_65534_uint64},
{idx: 11, exp: ge, fn: ge_65534_uint64},
{idx: 11, exp: eq, fn: eq_65534_uint64},
{idx: 11, exp: ne, fn: ne_65534_uint64},
{idx: 12, exp: lt, fn: lt_65535_uint64},
{idx: 12, exp: le, fn: le_65535_uint64},
{idx: 12, exp: gt, fn: gt_65535_uint64},
{idx: 12, exp: ge, fn: ge_65535_uint64},
{idx: 12, exp: eq, fn: eq_65535_uint64},
{idx: 12, exp: ne, fn: ne_65535_uint64},
{idx: 13, exp: lt, fn: lt_65536_uint64},
{idx: 13, exp: le, fn: le_65536_uint64},
{idx: 13, exp: gt, fn: gt_65536_uint64},
{idx: 13, exp: ge, fn: ge_65536_uint64},
{idx: 13, exp: eq, fn: eq_65536_uint64},
{idx: 13, exp: ne, fn: ne_65536_uint64},
{idx: 14, exp: lt, fn: lt_2147483646_uint64},
{idx: 14, exp: le, fn: le_2147483646_uint64},
{idx: 14, exp: gt, fn: gt_2147483646_uint64},
{idx: 14, exp: ge, fn: ge_2147483646_uint64},
{idx: 14, exp: eq, fn: eq_2147483646_uint64},
{idx: 14, exp: ne, fn: ne_2147483646_uint64},
{idx: 15, exp: lt, fn: lt_2147483647_uint64},
{idx: 15, exp: le, fn: le_2147483647_uint64},
{idx: 15, exp: gt, fn: gt_2147483647_uint64},
{idx: 15, exp: ge, fn: ge_2147483647_uint64},
{idx: 15, exp: eq, fn: eq_2147483647_uint64},
{idx: 15, exp: ne, fn: ne_2147483647_uint64},
{idx: 16, exp: lt, fn: lt_2147483648_uint64},
{idx: 16, exp: le, fn: le_2147483648_uint64},
{idx: 16, exp: gt, fn: gt_2147483648_uint64},
{idx: 16, exp: ge, fn: ge_2147483648_uint64},
{idx: 16, exp: eq, fn: eq_2147483648_uint64},
{idx: 16, exp: ne, fn: ne_2147483648_uint64},
{idx: 17, exp: lt, fn: lt_4278190080_uint64},
{idx: 17, exp: le, fn: le_4278190080_uint64},
{idx: 17, exp: gt, fn: gt_4278190080_uint64},
{idx: 17, exp: ge, fn: ge_4278190080_uint64},
{idx: 17, exp: eq, fn: eq_4278190080_uint64},
{idx: 17, exp: ne, fn: ne_4278190080_uint64},
{idx: 18, exp: lt, fn: lt_4294967294_uint64},
{idx: 18, exp: le, fn: le_4294967294_uint64},
{idx: 18, exp: gt, fn: gt_4294967294_uint64},
{idx: 18, exp: ge, fn: ge_4294967294_uint64},
{idx: 18, exp: eq, fn: eq_4294967294_uint64},
{idx: 18, exp: ne, fn: ne_4294967294_uint64},
{idx: 19, exp: lt, fn: lt_4294967295_uint64},
{idx: 19, exp: le, fn: le_4294967295_uint64},
{idx: 19, exp: gt, fn: gt_4294967295_uint64},
{idx: 19, exp: ge, fn: ge_4294967295_uint64},
{idx: 19, exp: eq, fn: eq_4294967295_uint64},
{idx: 19, exp: ne, fn: ne_4294967295_uint64},
{idx: 20, exp: lt, fn: lt_4294967296_uint64},
{idx: 20, exp: le, fn: le_4294967296_uint64},
{idx: 20, exp: gt, fn: gt_4294967296_uint64},
{idx: 20, exp: ge, fn: ge_4294967296_uint64},
{idx: 20, exp: eq, fn: eq_4294967296_uint64},
{idx: 20, exp: ne, fn: ne_4294967296_uint64},
{idx: 21, exp: lt, fn: lt_1095216660480_uint64},
{idx: 21, exp: le, fn: le_1095216660480_uint64},
{idx: 21, exp: gt, fn: gt_1095216660480_uint64},
{idx: 21, exp: ge, fn: ge_1095216660480_uint64},
{idx: 21, exp: eq, fn: eq_1095216660480_uint64},
{idx: 21, exp: ne, fn: ne_1095216660480_uint64},
{idx: 22, exp: lt, fn: lt_9223372036854775806_uint64},
{idx: 22, exp: le, fn: le_9223372036854775806_uint64},
{idx: 22, exp: gt, fn: gt_9223372036854775806_uint64},
{idx: 22, exp: ge, fn: ge_9223372036854775806_uint64},
{idx: 22, exp: eq, fn: eq_9223372036854775806_uint64},
{idx: 22, exp: ne, fn: ne_9223372036854775806_uint64},
{idx: 23, exp: lt, fn: lt_9223372036854775807_uint64},
{idx: 23, exp: le, fn: le_9223372036854775807_uint64},
{idx: 23, exp: gt, fn: gt_9223372036854775807_uint64},
{idx: 23, exp: ge, fn: ge_9223372036854775807_uint64},
{idx: 23, exp: eq, fn: eq_9223372036854775807_uint64},
{idx: 23, exp: ne, fn: ne_9223372036854775807_uint64},
{idx: 24, exp: lt, fn: lt_9223372036854775808_uint64},
{idx: 24, exp: le, fn: le_9223372036854775808_uint64},
{idx: 24, exp: gt, fn: gt_9223372036854775808_uint64},
{idx: 24, exp: ge, fn: ge_9223372036854775808_uint64},
{idx: 24, exp: eq, fn: eq_9223372036854775808_uint64},
{idx: 24, exp: ne, fn: ne_9223372036854775808_uint64},
{idx: 25, exp: lt, fn: lt_18374686479671623680_uint64},
{idx: 25, exp: le, fn: le_18374686479671623680_uint64},
{idx: 25, exp: gt, fn: gt_18374686479671623680_uint64},
{idx: 25, exp: ge, fn: ge_18374686479671623680_uint64},
{idx: 25, exp: eq, fn: eq_18374686479671623680_uint64},
{idx: 25, exp: ne, fn: ne_18374686479671623680_uint64},
{idx: 26, exp: lt, fn: lt_18446744073709551614_uint64},
{idx: 26, exp: le, fn: le_18446744073709551614_uint64},
{idx: 26, exp: gt, fn: gt_18446744073709551614_uint64},
{idx: 26, exp: ge, fn: ge_18446744073709551614_uint64},
{idx: 26, exp: eq, fn: eq_18446744073709551614_uint64},
{idx: 26, exp: ne, fn: ne_18446744073709551614_uint64},
{idx: 27, exp: lt, fn: lt_18446744073709551615_uint64},
{idx: 27, exp: le, fn: le_18446744073709551615_uint64},
{idx: 27, exp: gt, fn: gt_18446744073709551615_uint64},
{idx: 27, exp: ge, fn: ge_18446744073709551615_uint64},
{idx: 27, exp: eq, fn: eq_18446744073709551615_uint64},
{idx: 27, exp: ne, fn: ne_18446744073709551615_uint64},
}
// uint32 tests
......@@ -547,126 +547,126 @@ var uint32_tests = []struct {
exp result // expected results
fn func(uint32) bool
}{
{idx: 0, exp: _lt, fn: lt_0_uint32},
{idx: 0, exp: _le, fn: le_0_uint32},
{idx: 0, exp: _gt, fn: gt_0_uint32},
{idx: 0, exp: _ge, fn: ge_0_uint32},
{idx: 0, exp: _eq, fn: eq_0_uint32},
{idx: 0, exp: _ne, fn: ne_0_uint32},
{idx: 1, exp: _lt, fn: lt_1_uint32},
{idx: 1, exp: _le, fn: le_1_uint32},
{idx: 1, exp: _gt, fn: gt_1_uint32},
{idx: 1, exp: _ge, fn: ge_1_uint32},
{idx: 1, exp: _eq, fn: eq_1_uint32},
{idx: 1, exp: _ne, fn: ne_1_uint32},
{idx: 2, exp: _lt, fn: lt_126_uint32},
{idx: 2, exp: _le, fn: le_126_uint32},
{idx: 2, exp: _gt, fn: gt_126_uint32},
{idx: 2, exp: _ge, fn: ge_126_uint32},
{idx: 2, exp: _eq, fn: eq_126_uint32},
{idx: 2, exp: _ne, fn: ne_126_uint32},
{idx: 3, exp: _lt, fn: lt_127_uint32},
{idx: 3, exp: _le, fn: le_127_uint32},
{idx: 3, exp: _gt, fn: gt_127_uint32},
{idx: 3, exp: _ge, fn: ge_127_uint32},
{idx: 3, exp: _eq, fn: eq_127_uint32},
{idx: 3, exp: _ne, fn: ne_127_uint32},
{idx: 4, exp: _lt, fn: lt_128_uint32},
{idx: 4, exp: _le, fn: le_128_uint32},
{idx: 4, exp: _gt, fn: gt_128_uint32},
{idx: 4, exp: _ge, fn: ge_128_uint32},
{idx: 4, exp: _eq, fn: eq_128_uint32},
{idx: 4, exp: _ne, fn: ne_128_uint32},
{idx: 5, exp: _lt, fn: lt_254_uint32},
{idx: 5, exp: _le, fn: le_254_uint32},
{idx: 5, exp: _gt, fn: gt_254_uint32},
{idx: 5, exp: _ge, fn: ge_254_uint32},
{idx: 5, exp: _eq, fn: eq_254_uint32},
{idx: 5, exp: _ne, fn: ne_254_uint32},
{idx: 6, exp: _lt, fn: lt_255_uint32},
{idx: 6, exp: _le, fn: le_255_uint32},
{idx: 6, exp: _gt, fn: gt_255_uint32},
{idx: 6, exp: _ge, fn: ge_255_uint32},
{idx: 6, exp: _eq, fn: eq_255_uint32},
{idx: 6, exp: _ne, fn: ne_255_uint32},
{idx: 7, exp: _lt, fn: lt_256_uint32},
{idx: 7, exp: _le, fn: le_256_uint32},
{idx: 7, exp: _gt, fn: gt_256_uint32},
{idx: 7, exp: _ge, fn: ge_256_uint32},
{idx: 7, exp: _eq, fn: eq_256_uint32},
{idx: 7, exp: _ne, fn: ne_256_uint32},
{idx: 8, exp: _lt, fn: lt_32766_uint32},
{idx: 8, exp: _le, fn: le_32766_uint32},
{idx: 8, exp: _gt, fn: gt_32766_uint32},
{idx: 8, exp: _ge, fn: ge_32766_uint32},
{idx: 8, exp: _eq, fn: eq_32766_uint32},
{idx: 8, exp: _ne, fn: ne_32766_uint32},
{idx: 9, exp: _lt, fn: lt_32767_uint32},
{idx: 9, exp: _le, fn: le_32767_uint32},
{idx: 9, exp: _gt, fn: gt_32767_uint32},
{idx: 9, exp: _ge, fn: ge_32767_uint32},
{idx: 9, exp: _eq, fn: eq_32767_uint32},
{idx: 9, exp: _ne, fn: ne_32767_uint32},
{idx: 10, exp: _lt, fn: lt_32768_uint32},
{idx: 10, exp: _le, fn: le_32768_uint32},
{idx: 10, exp: _gt, fn: gt_32768_uint32},
{idx: 10, exp: _ge, fn: ge_32768_uint32},
{idx: 10, exp: _eq, fn: eq_32768_uint32},
{idx: 10, exp: _ne, fn: ne_32768_uint32},
{idx: 11, exp: _lt, fn: lt_65534_uint32},
{idx: 11, exp: _le, fn: le_65534_uint32},
{idx: 11, exp: _gt, fn: gt_65534_uint32},
{idx: 11, exp: _ge, fn: ge_65534_uint32},
{idx: 11, exp: _eq, fn: eq_65534_uint32},
{idx: 11, exp: _ne, fn: ne_65534_uint32},
{idx: 12, exp: _lt, fn: lt_65535_uint32},
{idx: 12, exp: _le, fn: le_65535_uint32},
{idx: 12, exp: _gt, fn: gt_65535_uint32},
{idx: 12, exp: _ge, fn: ge_65535_uint32},
{idx: 12, exp: _eq, fn: eq_65535_uint32},
{idx: 12, exp: _ne, fn: ne_65535_uint32},
{idx: 13, exp: _lt, fn: lt_65536_uint32},
{idx: 13, exp: _le, fn: le_65536_uint32},
{idx: 13, exp: _gt, fn: gt_65536_uint32},
{idx: 13, exp: _ge, fn: ge_65536_uint32},
{idx: 13, exp: _eq, fn: eq_65536_uint32},
{idx: 13, exp: _ne, fn: ne_65536_uint32},
{idx: 14, exp: _lt, fn: lt_2147483646_uint32},
{idx: 14, exp: _le, fn: le_2147483646_uint32},
{idx: 14, exp: _gt, fn: gt_2147483646_uint32},
{idx: 14, exp: _ge, fn: ge_2147483646_uint32},
{idx: 14, exp: _eq, fn: eq_2147483646_uint32},
{idx: 14, exp: _ne, fn: ne_2147483646_uint32},
{idx: 15, exp: _lt, fn: lt_2147483647_uint32},
{idx: 15, exp: _le, fn: le_2147483647_uint32},
{idx: 15, exp: _gt, fn: gt_2147483647_uint32},
{idx: 15, exp: _ge, fn: ge_2147483647_uint32},
{idx: 15, exp: _eq, fn: eq_2147483647_uint32},
{idx: 15, exp: _ne, fn: ne_2147483647_uint32},
{idx: 16, exp: _lt, fn: lt_2147483648_uint32},
{idx: 16, exp: _le, fn: le_2147483648_uint32},
{idx: 16, exp: _gt, fn: gt_2147483648_uint32},
{idx: 16, exp: _ge, fn: ge_2147483648_uint32},
{idx: 16, exp: _eq, fn: eq_2147483648_uint32},
{idx: 16, exp: _ne, fn: ne_2147483648_uint32},
{idx: 17, exp: _lt, fn: lt_4278190080_uint32},
{idx: 17, exp: _le, fn: le_4278190080_uint32},
{idx: 17, exp: _gt, fn: gt_4278190080_uint32},
{idx: 17, exp: _ge, fn: ge_4278190080_uint32},
{idx: 17, exp: _eq, fn: eq_4278190080_uint32},
{idx: 17, exp: _ne, fn: ne_4278190080_uint32},
{idx: 18, exp: _lt, fn: lt_4294967294_uint32},
{idx: 18, exp: _le, fn: le_4294967294_uint32},
{idx: 18, exp: _gt, fn: gt_4294967294_uint32},
{idx: 18, exp: _ge, fn: ge_4294967294_uint32},
{idx: 18, exp: _eq, fn: eq_4294967294_uint32},
{idx: 18, exp: _ne, fn: ne_4294967294_uint32},
{idx: 19, exp: _lt, fn: lt_4294967295_uint32},
{idx: 19, exp: _le, fn: le_4294967295_uint32},
{idx: 19, exp: _gt, fn: gt_4294967295_uint32},
{idx: 19, exp: _ge, fn: ge_4294967295_uint32},
{idx: 19, exp: _eq, fn: eq_4294967295_uint32},
{idx: 19, exp: _ne, fn: ne_4294967295_uint32},
{idx: 0, exp: lt, fn: lt_0_uint32},
{idx: 0, exp: le, fn: le_0_uint32},
{idx: 0, exp: gt, fn: gt_0_uint32},
{idx: 0, exp: ge, fn: ge_0_uint32},
{idx: 0, exp: eq, fn: eq_0_uint32},
{idx: 0, exp: ne, fn: ne_0_uint32},
{idx: 1, exp: lt, fn: lt_1_uint32},
{idx: 1, exp: le, fn: le_1_uint32},
{idx: 1, exp: gt, fn: gt_1_uint32},
{idx: 1, exp: ge, fn: ge_1_uint32},
{idx: 1, exp: eq, fn: eq_1_uint32},
{idx: 1, exp: ne, fn: ne_1_uint32},
{idx: 2, exp: lt, fn: lt_126_uint32},
{idx: 2, exp: le, fn: le_126_uint32},
{idx: 2, exp: gt, fn: gt_126_uint32},
{idx: 2, exp: ge, fn: ge_126_uint32},
{idx: 2, exp: eq, fn: eq_126_uint32},
{idx: 2, exp: ne, fn: ne_126_uint32},
{idx: 3, exp: lt, fn: lt_127_uint32},
{idx: 3, exp: le, fn: le_127_uint32},
{idx: 3, exp: gt, fn: gt_127_uint32},
{idx: 3, exp: ge, fn: ge_127_uint32},
{idx: 3, exp: eq, fn: eq_127_uint32},
{idx: 3, exp: ne, fn: ne_127_uint32},
{idx: 4, exp: lt, fn: lt_128_uint32},
{idx: 4, exp: le, fn: le_128_uint32},
{idx: 4, exp: gt, fn: gt_128_uint32},
{idx: 4, exp: ge, fn: ge_128_uint32},
{idx: 4, exp: eq, fn: eq_128_uint32},
{idx: 4, exp: ne, fn: ne_128_uint32},
{idx: 5, exp: lt, fn: lt_254_uint32},
{idx: 5, exp: le, fn: le_254_uint32},
{idx: 5, exp: gt, fn: gt_254_uint32},
{idx: 5, exp: ge, fn: ge_254_uint32},
{idx: 5, exp: eq, fn: eq_254_uint32},
{idx: 5, exp: ne, fn: ne_254_uint32},
{idx: 6, exp: lt, fn: lt_255_uint32},
{idx: 6, exp: le, fn: le_255_uint32},
{idx: 6, exp: gt, fn: gt_255_uint32},
{idx: 6, exp: ge, fn: ge_255_uint32},
{idx: 6, exp: eq, fn: eq_255_uint32},
{idx: 6, exp: ne, fn: ne_255_uint32},
{idx: 7, exp: lt, fn: lt_256_uint32},
{idx: 7, exp: le, fn: le_256_uint32},
{idx: 7, exp: gt, fn: gt_256_uint32},
{idx: 7, exp: ge, fn: ge_256_uint32},
{idx: 7, exp: eq, fn: eq_256_uint32},
{idx: 7, exp: ne, fn: ne_256_uint32},
{idx: 8, exp: lt, fn: lt_32766_uint32},
{idx: 8, exp: le, fn: le_32766_uint32},
{idx: 8, exp: gt, fn: gt_32766_uint32},
{idx: 8, exp: ge, fn: ge_32766_uint32},
{idx: 8, exp: eq, fn: eq_32766_uint32},
{idx: 8, exp: ne, fn: ne_32766_uint32},
{idx: 9, exp: lt, fn: lt_32767_uint32},
{idx: 9, exp: le, fn: le_32767_uint32},
{idx: 9, exp: gt, fn: gt_32767_uint32},
{idx: 9, exp: ge, fn: ge_32767_uint32},
{idx: 9, exp: eq, fn: eq_32767_uint32},
{idx: 9, exp: ne, fn: ne_32767_uint32},
{idx: 10, exp: lt, fn: lt_32768_uint32},
{idx: 10, exp: le, fn: le_32768_uint32},
{idx: 10, exp: gt, fn: gt_32768_uint32},
{idx: 10, exp: ge, fn: ge_32768_uint32},
{idx: 10, exp: eq, fn: eq_32768_uint32},
{idx: 10, exp: ne, fn: ne_32768_uint32},
{idx: 11, exp: lt, fn: lt_65534_uint32},
{idx: 11, exp: le, fn: le_65534_uint32},
{idx: 11, exp: gt, fn: gt_65534_uint32},
{idx: 11, exp: ge, fn: ge_65534_uint32},
{idx: 11, exp: eq, fn: eq_65534_uint32},
{idx: 11, exp: ne, fn: ne_65534_uint32},
{idx: 12, exp: lt, fn: lt_65535_uint32},
{idx: 12, exp: le, fn: le_65535_uint32},
{idx: 12, exp: gt, fn: gt_65535_uint32},
{idx: 12, exp: ge, fn: ge_65535_uint32},
{idx: 12, exp: eq, fn: eq_65535_uint32},
{idx: 12, exp: ne, fn: ne_65535_uint32},
{idx: 13, exp: lt, fn: lt_65536_uint32},
{idx: 13, exp: le, fn: le_65536_uint32},
{idx: 13, exp: gt, fn: gt_65536_uint32},
{idx: 13, exp: ge, fn: ge_65536_uint32},
{idx: 13, exp: eq, fn: eq_65536_uint32},
{idx: 13, exp: ne, fn: ne_65536_uint32},
{idx: 14, exp: lt, fn: lt_2147483646_uint32},
{idx: 14, exp: le, fn: le_2147483646_uint32},
{idx: 14, exp: gt, fn: gt_2147483646_uint32},
{idx: 14, exp: ge, fn: ge_2147483646_uint32},
{idx: 14, exp: eq, fn: eq_2147483646_uint32},
{idx: 14, exp: ne, fn: ne_2147483646_uint32},
{idx: 15, exp: lt, fn: lt_2147483647_uint32},
{idx: 15, exp: le, fn: le_2147483647_uint32},
{idx: 15, exp: gt, fn: gt_2147483647_uint32},
{idx: 15, exp: ge, fn: ge_2147483647_uint32},
{idx: 15, exp: eq, fn: eq_2147483647_uint32},
{idx: 15, exp: ne, fn: ne_2147483647_uint32},
{idx: 16, exp: lt, fn: lt_2147483648_uint32},
{idx: 16, exp: le, fn: le_2147483648_uint32},
{idx: 16, exp: gt, fn: gt_2147483648_uint32},
{idx: 16, exp: ge, fn: ge_2147483648_uint32},
{idx: 16, exp: eq, fn: eq_2147483648_uint32},
{idx: 16, exp: ne, fn: ne_2147483648_uint32},
{idx: 17, exp: lt, fn: lt_4278190080_uint32},
{idx: 17, exp: le, fn: le_4278190080_uint32},
{idx: 17, exp: gt, fn: gt_4278190080_uint32},
{idx: 17, exp: ge, fn: ge_4278190080_uint32},
{idx: 17, exp: eq, fn: eq_4278190080_uint32},
{idx: 17, exp: ne, fn: ne_4278190080_uint32},
{idx: 18, exp: lt, fn: lt_4294967294_uint32},
{idx: 18, exp: le, fn: le_4294967294_uint32},
{idx: 18, exp: gt, fn: gt_4294967294_uint32},
{idx: 18, exp: ge, fn: ge_4294967294_uint32},
{idx: 18, exp: eq, fn: eq_4294967294_uint32},
{idx: 18, exp: ne, fn: ne_4294967294_uint32},
{idx: 19, exp: lt, fn: lt_4294967295_uint32},
{idx: 19, exp: le, fn: le_4294967295_uint32},
{idx: 19, exp: gt, fn: gt_4294967295_uint32},
{idx: 19, exp: ge, fn: ge_4294967295_uint32},
{idx: 19, exp: eq, fn: eq_4294967295_uint32},
{idx: 19, exp: ne, fn: ne_4294967295_uint32},
}
// uint16 tests
......@@ -770,84 +770,84 @@ var uint16_tests = []struct {
exp result // expected results
fn func(uint16) bool
}{
{idx: 0, exp: _lt, fn: lt_0_uint16},
{idx: 0, exp: _le, fn: le_0_uint16},
{idx: 0, exp: _gt, fn: gt_0_uint16},
{idx: 0, exp: _ge, fn: ge_0_uint16},
{idx: 0, exp: _eq, fn: eq_0_uint16},
{idx: 0, exp: _ne, fn: ne_0_uint16},
{idx: 1, exp: _lt, fn: lt_1_uint16},
{idx: 1, exp: _le, fn: le_1_uint16},
{idx: 1, exp: _gt, fn: gt_1_uint16},
{idx: 1, exp: _ge, fn: ge_1_uint16},
{idx: 1, exp: _eq, fn: eq_1_uint16},
{idx: 1, exp: _ne, fn: ne_1_uint16},
{idx: 2, exp: _lt, fn: lt_126_uint16},
{idx: 2, exp: _le, fn: le_126_uint16},
{idx: 2, exp: _gt, fn: gt_126_uint16},
{idx: 2, exp: _ge, fn: ge_126_uint16},
{idx: 2, exp: _eq, fn: eq_126_uint16},
{idx: 2, exp: _ne, fn: ne_126_uint16},
{idx: 3, exp: _lt, fn: lt_127_uint16},
{idx: 3, exp: _le, fn: le_127_uint16},
{idx: 3, exp: _gt, fn: gt_127_uint16},
{idx: 3, exp: _ge, fn: ge_127_uint16},
{idx: 3, exp: _eq, fn: eq_127_uint16},
{idx: 3, exp: _ne, fn: ne_127_uint16},
{idx: 4, exp: _lt, fn: lt_128_uint16},
{idx: 4, exp: _le, fn: le_128_uint16},
{idx: 4, exp: _gt, fn: gt_128_uint16},
{idx: 4, exp: _ge, fn: ge_128_uint16},
{idx: 4, exp: _eq, fn: eq_128_uint16},
{idx: 4, exp: _ne, fn: ne_128_uint16},
{idx: 5, exp: _lt, fn: lt_254_uint16},
{idx: 5, exp: _le, fn: le_254_uint16},
{idx: 5, exp: _gt, fn: gt_254_uint16},
{idx: 5, exp: _ge, fn: ge_254_uint16},
{idx: 5, exp: _eq, fn: eq_254_uint16},
{idx: 5, exp: _ne, fn: ne_254_uint16},
{idx: 6, exp: _lt, fn: lt_255_uint16},
{idx: 6, exp: _le, fn: le_255_uint16},
{idx: 6, exp: _gt, fn: gt_255_uint16},
{idx: 6, exp: _ge, fn: ge_255_uint16},
{idx: 6, exp: _eq, fn: eq_255_uint16},
{idx: 6, exp: _ne, fn: ne_255_uint16},
{idx: 7, exp: _lt, fn: lt_256_uint16},
{idx: 7, exp: _le, fn: le_256_uint16},
{idx: 7, exp: _gt, fn: gt_256_uint16},
{idx: 7, exp: _ge, fn: ge_256_uint16},
{idx: 7, exp: _eq, fn: eq_256_uint16},
{idx: 7, exp: _ne, fn: ne_256_uint16},
{idx: 8, exp: _lt, fn: lt_32766_uint16},
{idx: 8, exp: _le, fn: le_32766_uint16},
{idx: 8, exp: _gt, fn: gt_32766_uint16},
{idx: 8, exp: _ge, fn: ge_32766_uint16},
{idx: 8, exp: _eq, fn: eq_32766_uint16},
{idx: 8, exp: _ne, fn: ne_32766_uint16},
{idx: 9, exp: _lt, fn: lt_32767_uint16},
{idx: 9, exp: _le, fn: le_32767_uint16},
{idx: 9, exp: _gt, fn: gt_32767_uint16},
{idx: 9, exp: _ge, fn: ge_32767_uint16},
{idx: 9, exp: _eq, fn: eq_32767_uint16},
{idx: 9, exp: _ne, fn: ne_32767_uint16},
{idx: 10, exp: _lt, fn: lt_32768_uint16},
{idx: 10, exp: _le, fn: le_32768_uint16},
{idx: 10, exp: _gt, fn: gt_32768_uint16},
{idx: 10, exp: _ge, fn: ge_32768_uint16},
{idx: 10, exp: _eq, fn: eq_32768_uint16},
{idx: 10, exp: _ne, fn: ne_32768_uint16},
{idx: 11, exp: _lt, fn: lt_65534_uint16},
{idx: 11, exp: _le, fn: le_65534_uint16},
{idx: 11, exp: _gt, fn: gt_65534_uint16},
{idx: 11, exp: _ge, fn: ge_65534_uint16},
{idx: 11, exp: _eq, fn: eq_65534_uint16},
{idx: 11, exp: _ne, fn: ne_65534_uint16},
{idx: 12, exp: _lt, fn: lt_65535_uint16},
{idx: 12, exp: _le, fn: le_65535_uint16},
{idx: 12, exp: _gt, fn: gt_65535_uint16},
{idx: 12, exp: _ge, fn: ge_65535_uint16},
{idx: 12, exp: _eq, fn: eq_65535_uint16},
{idx: 12, exp: _ne, fn: ne_65535_uint16},
{idx: 0, exp: lt, fn: lt_0_uint16},
{idx: 0, exp: le, fn: le_0_uint16},
{idx: 0, exp: gt, fn: gt_0_uint16},
{idx: 0, exp: ge, fn: ge_0_uint16},
{idx: 0, exp: eq, fn: eq_0_uint16},
{idx: 0, exp: ne, fn: ne_0_uint16},
{idx: 1, exp: lt, fn: lt_1_uint16},
{idx: 1, exp: le, fn: le_1_uint16},
{idx: 1, exp: gt, fn: gt_1_uint16},
{idx: 1, exp: ge, fn: ge_1_uint16},
{idx: 1, exp: eq, fn: eq_1_uint16},
{idx: 1, exp: ne, fn: ne_1_uint16},
{idx: 2, exp: lt, fn: lt_126_uint16},
{idx: 2, exp: le, fn: le_126_uint16},
{idx: 2, exp: gt, fn: gt_126_uint16},
{idx: 2, exp: ge, fn: ge_126_uint16},
{idx: 2, exp: eq, fn: eq_126_uint16},
{idx: 2, exp: ne, fn: ne_126_uint16},
{idx: 3, exp: lt, fn: lt_127_uint16},
{idx: 3, exp: le, fn: le_127_uint16},
{idx: 3, exp: gt, fn: gt_127_uint16},
{idx: 3, exp: ge, fn: ge_127_uint16},
{idx: 3, exp: eq, fn: eq_127_uint16},
{idx: 3, exp: ne, fn: ne_127_uint16},
{idx: 4, exp: lt, fn: lt_128_uint16},
{idx: 4, exp: le, fn: le_128_uint16},
{idx: 4, exp: gt, fn: gt_128_uint16},
{idx: 4, exp: ge, fn: ge_128_uint16},
{idx: 4, exp: eq, fn: eq_128_uint16},
{idx: 4, exp: ne, fn: ne_128_uint16},
{idx: 5, exp: lt, fn: lt_254_uint16},
{idx: 5, exp: le, fn: le_254_uint16},
{idx: 5, exp: gt, fn: gt_254_uint16},
{idx: 5, exp: ge, fn: ge_254_uint16},
{idx: 5, exp: eq, fn: eq_254_uint16},
{idx: 5, exp: ne, fn: ne_254_uint16},
{idx: 6, exp: lt, fn: lt_255_uint16},
{idx: 6, exp: le, fn: le_255_uint16},
{idx: 6, exp: gt, fn: gt_255_uint16},
{idx: 6, exp: ge, fn: ge_255_uint16},
{idx: 6, exp: eq, fn: eq_255_uint16},
{idx: 6, exp: ne, fn: ne_255_uint16},
{idx: 7, exp: lt, fn: lt_256_uint16},
{idx: 7, exp: le, fn: le_256_uint16},
{idx: 7, exp: gt, fn: gt_256_uint16},
{idx: 7, exp: ge, fn: ge_256_uint16},
{idx: 7, exp: eq, fn: eq_256_uint16},
{idx: 7, exp: ne, fn: ne_256_uint16},
{idx: 8, exp: lt, fn: lt_32766_uint16},
{idx: 8, exp: le, fn: le_32766_uint16},
{idx: 8, exp: gt, fn: gt_32766_uint16},
{idx: 8, exp: ge, fn: ge_32766_uint16},
{idx: 8, exp: eq, fn: eq_32766_uint16},
{idx: 8, exp: ne, fn: ne_32766_uint16},
{idx: 9, exp: lt, fn: lt_32767_uint16},
{idx: 9, exp: le, fn: le_32767_uint16},
{idx: 9, exp: gt, fn: gt_32767_uint16},
{idx: 9, exp: ge, fn: ge_32767_uint16},
{idx: 9, exp: eq, fn: eq_32767_uint16},
{idx: 9, exp: ne, fn: ne_32767_uint16},
{idx: 10, exp: lt, fn: lt_32768_uint16},
{idx: 10, exp: le, fn: le_32768_uint16},
{idx: 10, exp: gt, fn: gt_32768_uint16},
{idx: 10, exp: ge, fn: ge_32768_uint16},
{idx: 10, exp: eq, fn: eq_32768_uint16},
{idx: 10, exp: ne, fn: ne_32768_uint16},
{idx: 11, exp: lt, fn: lt_65534_uint16},
{idx: 11, exp: le, fn: le_65534_uint16},
{idx: 11, exp: gt, fn: gt_65534_uint16},
{idx: 11, exp: ge, fn: ge_65534_uint16},
{idx: 11, exp: eq, fn: eq_65534_uint16},
{idx: 11, exp: ne, fn: ne_65534_uint16},
{idx: 12, exp: lt, fn: lt_65535_uint16},
{idx: 12, exp: le, fn: le_65535_uint16},
{idx: 12, exp: gt, fn: gt_65535_uint16},
{idx: 12, exp: ge, fn: ge_65535_uint16},
{idx: 12, exp: eq, fn: eq_65535_uint16},
{idx: 12, exp: ne, fn: ne_65535_uint16},
}
// uint8 tests
......@@ -909,48 +909,48 @@ var uint8_tests = []struct {
exp result // expected results
fn func(uint8) bool
}{
{idx: 0, exp: _lt, fn: lt_0_uint8},
{idx: 0, exp: _le, fn: le_0_uint8},
{idx: 0, exp: _gt, fn: gt_0_uint8},
{idx: 0, exp: _ge, fn: ge_0_uint8},
{idx: 0, exp: _eq, fn: eq_0_uint8},
{idx: 0, exp: _ne, fn: ne_0_uint8},
{idx: 1, exp: _lt, fn: lt_1_uint8},
{idx: 1, exp: _le, fn: le_1_uint8},
{idx: 1, exp: _gt, fn: gt_1_uint8},
{idx: 1, exp: _ge, fn: ge_1_uint8},
{idx: 1, exp: _eq, fn: eq_1_uint8},
{idx: 1, exp: _ne, fn: ne_1_uint8},
{idx: 2, exp: _lt, fn: lt_126_uint8},
{idx: 2, exp: _le, fn: le_126_uint8},
{idx: 2, exp: _gt, fn: gt_126_uint8},
{idx: 2, exp: _ge, fn: ge_126_uint8},
{idx: 2, exp: _eq, fn: eq_126_uint8},
{idx: 2, exp: _ne, fn: ne_126_uint8},
{idx: 3, exp: _lt, fn: lt_127_uint8},
{idx: 3, exp: _le, fn: le_127_uint8},
{idx: 3, exp: _gt, fn: gt_127_uint8},
{idx: 3, exp: _ge, fn: ge_127_uint8},
{idx: 3, exp: _eq, fn: eq_127_uint8},
{idx: 3, exp: _ne, fn: ne_127_uint8},
{idx: 4, exp: _lt, fn: lt_128_uint8},
{idx: 4, exp: _le, fn: le_128_uint8},
{idx: 4, exp: _gt, fn: gt_128_uint8},
{idx: 4, exp: _ge, fn: ge_128_uint8},
{idx: 4, exp: _eq, fn: eq_128_uint8},
{idx: 4, exp: _ne, fn: ne_128_uint8},
{idx: 5, exp: _lt, fn: lt_254_uint8},
{idx: 5, exp: _le, fn: le_254_uint8},
{idx: 5, exp: _gt, fn: gt_254_uint8},
{idx: 5, exp: _ge, fn: ge_254_uint8},
{idx: 5, exp: _eq, fn: eq_254_uint8},
{idx: 5, exp: _ne, fn: ne_254_uint8},
{idx: 6, exp: _lt, fn: lt_255_uint8},
{idx: 6, exp: _le, fn: le_255_uint8},
{idx: 6, exp: _gt, fn: gt_255_uint8},
{idx: 6, exp: _ge, fn: ge_255_uint8},
{idx: 6, exp: _eq, fn: eq_255_uint8},
{idx: 6, exp: _ne, fn: ne_255_uint8},
{idx: 0, exp: lt, fn: lt_0_uint8},
{idx: 0, exp: le, fn: le_0_uint8},
{idx: 0, exp: gt, fn: gt_0_uint8},
{idx: 0, exp: ge, fn: ge_0_uint8},
{idx: 0, exp: eq, fn: eq_0_uint8},
{idx: 0, exp: ne, fn: ne_0_uint8},
{idx: 1, exp: lt, fn: lt_1_uint8},
{idx: 1, exp: le, fn: le_1_uint8},
{idx: 1, exp: gt, fn: gt_1_uint8},
{idx: 1, exp: ge, fn: ge_1_uint8},
{idx: 1, exp: eq, fn: eq_1_uint8},
{idx: 1, exp: ne, fn: ne_1_uint8},
{idx: 2, exp: lt, fn: lt_126_uint8},
{idx: 2, exp: le, fn: le_126_uint8},
{idx: 2, exp: gt, fn: gt_126_uint8},
{idx: 2, exp: ge, fn: ge_126_uint8},
{idx: 2, exp: eq, fn: eq_126_uint8},
{idx: 2, exp: ne, fn: ne_126_uint8},
{idx: 3, exp: lt, fn: lt_127_uint8},
{idx: 3, exp: le, fn: le_127_uint8},
{idx: 3, exp: gt, fn: gt_127_uint8},
{idx: 3, exp: ge, fn: ge_127_uint8},
{idx: 3, exp: eq, fn: eq_127_uint8},
{idx: 3, exp: ne, fn: ne_127_uint8},
{idx: 4, exp: lt, fn: lt_128_uint8},
{idx: 4, exp: le, fn: le_128_uint8},
{idx: 4, exp: gt, fn: gt_128_uint8},
{idx: 4, exp: ge, fn: ge_128_uint8},
{idx: 4, exp: eq, fn: eq_128_uint8},
{idx: 4, exp: ne, fn: ne_128_uint8},
{idx: 5, exp: lt, fn: lt_254_uint8},
{idx: 5, exp: le, fn: le_254_uint8},
{idx: 5, exp: gt, fn: gt_254_uint8},
{idx: 5, exp: ge, fn: ge_254_uint8},
{idx: 5, exp: eq, fn: eq_254_uint8},
{idx: 5, exp: ne, fn: ne_254_uint8},
{idx: 6, exp: lt, fn: lt_255_uint8},
{idx: 6, exp: le, fn: le_255_uint8},
{idx: 6, exp: gt, fn: gt_255_uint8},
{idx: 6, exp: ge, fn: ge_255_uint8},
{idx: 6, exp: eq, fn: eq_255_uint8},
{idx: 6, exp: ne, fn: ne_255_uint8},
}
// int64 tests
......@@ -1215,222 +1215,222 @@ var int64_tests = []struct {
exp result // expected results
fn func(int64) bool
}{
{idx: 0, exp: _lt, fn: lt_neg9223372036854775808_int64},
{idx: 0, exp: _le, fn: le_neg9223372036854775808_int64},
{idx: 0, exp: _gt, fn: gt_neg9223372036854775808_int64},
{idx: 0, exp: _ge, fn: ge_neg9223372036854775808_int64},
{idx: 0, exp: _eq, fn: eq_neg9223372036854775808_int64},
{idx: 0, exp: _ne, fn: ne_neg9223372036854775808_int64},
{idx: 1, exp: _lt, fn: lt_neg9223372036854775807_int64},
{idx: 1, exp: _le, fn: le_neg9223372036854775807_int64},
{idx: 1, exp: _gt, fn: gt_neg9223372036854775807_int64},
{idx: 1, exp: _ge, fn: ge_neg9223372036854775807_int64},
{idx: 1, exp: _eq, fn: eq_neg9223372036854775807_int64},
{idx: 1, exp: _ne, fn: ne_neg9223372036854775807_int64},
{idx: 2, exp: _lt, fn: lt_neg2147483649_int64},
{idx: 2, exp: _le, fn: le_neg2147483649_int64},
{idx: 2, exp: _gt, fn: gt_neg2147483649_int64},
{idx: 2, exp: _ge, fn: ge_neg2147483649_int64},
{idx: 2, exp: _eq, fn: eq_neg2147483649_int64},
{idx: 2, exp: _ne, fn: ne_neg2147483649_int64},
{idx: 3, exp: _lt, fn: lt_neg2147483648_int64},
{idx: 3, exp: _le, fn: le_neg2147483648_int64},
{idx: 3, exp: _gt, fn: gt_neg2147483648_int64},
{idx: 3, exp: _ge, fn: ge_neg2147483648_int64},
{idx: 3, exp: _eq, fn: eq_neg2147483648_int64},
{idx: 3, exp: _ne, fn: ne_neg2147483648_int64},
{idx: 4, exp: _lt, fn: lt_neg2147483647_int64},
{idx: 4, exp: _le, fn: le_neg2147483647_int64},
{idx: 4, exp: _gt, fn: gt_neg2147483647_int64},
{idx: 4, exp: _ge, fn: ge_neg2147483647_int64},
{idx: 4, exp: _eq, fn: eq_neg2147483647_int64},
{idx: 4, exp: _ne, fn: ne_neg2147483647_int64},
{idx: 5, exp: _lt, fn: lt_neg32769_int64},
{idx: 5, exp: _le, fn: le_neg32769_int64},
{idx: 5, exp: _gt, fn: gt_neg32769_int64},
{idx: 5, exp: _ge, fn: ge_neg32769_int64},
{idx: 5, exp: _eq, fn: eq_neg32769_int64},
{idx: 5, exp: _ne, fn: ne_neg32769_int64},
{idx: 6, exp: _lt, fn: lt_neg32768_int64},
{idx: 6, exp: _le, fn: le_neg32768_int64},
{idx: 6, exp: _gt, fn: gt_neg32768_int64},
{idx: 6, exp: _ge, fn: ge_neg32768_int64},
{idx: 6, exp: _eq, fn: eq_neg32768_int64},
{idx: 6, exp: _ne, fn: ne_neg32768_int64},
{idx: 7, exp: _lt, fn: lt_neg32767_int64},
{idx: 7, exp: _le, fn: le_neg32767_int64},
{idx: 7, exp: _gt, fn: gt_neg32767_int64},
{idx: 7, exp: _ge, fn: ge_neg32767_int64},
{idx: 7, exp: _eq, fn: eq_neg32767_int64},
{idx: 7, exp: _ne, fn: ne_neg32767_int64},
{idx: 8, exp: _lt, fn: lt_neg129_int64},
{idx: 8, exp: _le, fn: le_neg129_int64},
{idx: 8, exp: _gt, fn: gt_neg129_int64},
{idx: 8, exp: _ge, fn: ge_neg129_int64},
{idx: 8, exp: _eq, fn: eq_neg129_int64},
{idx: 8, exp: _ne, fn: ne_neg129_int64},
{idx: 9, exp: _lt, fn: lt_neg128_int64},
{idx: 9, exp: _le, fn: le_neg128_int64},
{idx: 9, exp: _gt, fn: gt_neg128_int64},
{idx: 9, exp: _ge, fn: ge_neg128_int64},
{idx: 9, exp: _eq, fn: eq_neg128_int64},
{idx: 9, exp: _ne, fn: ne_neg128_int64},
{idx: 10, exp: _lt, fn: lt_neg127_int64},
{idx: 10, exp: _le, fn: le_neg127_int64},
{idx: 10, exp: _gt, fn: gt_neg127_int64},
{idx: 10, exp: _ge, fn: ge_neg127_int64},
{idx: 10, exp: _eq, fn: eq_neg127_int64},
{idx: 10, exp: _ne, fn: ne_neg127_int64},
{idx: 11, exp: _lt, fn: lt_neg1_int64},
{idx: 11, exp: _le, fn: le_neg1_int64},
{idx: 11, exp: _gt, fn: gt_neg1_int64},
{idx: 11, exp: _ge, fn: ge_neg1_int64},
{idx: 11, exp: _eq, fn: eq_neg1_int64},
{idx: 11, exp: _ne, fn: ne_neg1_int64},
{idx: 12, exp: _lt, fn: lt_0_int64},
{idx: 12, exp: _le, fn: le_0_int64},
{idx: 12, exp: _gt, fn: gt_0_int64},
{idx: 12, exp: _ge, fn: ge_0_int64},
{idx: 12, exp: _eq, fn: eq_0_int64},
{idx: 12, exp: _ne, fn: ne_0_int64},
{idx: 13, exp: _lt, fn: lt_1_int64},
{idx: 13, exp: _le, fn: le_1_int64},
{idx: 13, exp: _gt, fn: gt_1_int64},
{idx: 13, exp: _ge, fn: ge_1_int64},
{idx: 13, exp: _eq, fn: eq_1_int64},
{idx: 13, exp: _ne, fn: ne_1_int64},
{idx: 14, exp: _lt, fn: lt_126_int64},
{idx: 14, exp: _le, fn: le_126_int64},
{idx: 14, exp: _gt, fn: gt_126_int64},
{idx: 14, exp: _ge, fn: ge_126_int64},
{idx: 14, exp: _eq, fn: eq_126_int64},
{idx: 14, exp: _ne, fn: ne_126_int64},
{idx: 15, exp: _lt, fn: lt_127_int64},
{idx: 15, exp: _le, fn: le_127_int64},
{idx: 15, exp: _gt, fn: gt_127_int64},
{idx: 15, exp: _ge, fn: ge_127_int64},
{idx: 15, exp: _eq, fn: eq_127_int64},
{idx: 15, exp: _ne, fn: ne_127_int64},
{idx: 16, exp: _lt, fn: lt_128_int64},
{idx: 16, exp: _le, fn: le_128_int64},
{idx: 16, exp: _gt, fn: gt_128_int64},
{idx: 16, exp: _ge, fn: ge_128_int64},
{idx: 16, exp: _eq, fn: eq_128_int64},
{idx: 16, exp: _ne, fn: ne_128_int64},
{idx: 17, exp: _lt, fn: lt_254_int64},
{idx: 17, exp: _le, fn: le_254_int64},
{idx: 17, exp: _gt, fn: gt_254_int64},
{idx: 17, exp: _ge, fn: ge_254_int64},
{idx: 17, exp: _eq, fn: eq_254_int64},
{idx: 17, exp: _ne, fn: ne_254_int64},
{idx: 18, exp: _lt, fn: lt_255_int64},
{idx: 18, exp: _le, fn: le_255_int64},
{idx: 18, exp: _gt, fn: gt_255_int64},
{idx: 18, exp: _ge, fn: ge_255_int64},
{idx: 18, exp: _eq, fn: eq_255_int64},
{idx: 18, exp: _ne, fn: ne_255_int64},
{idx: 19, exp: _lt, fn: lt_256_int64},
{idx: 19, exp: _le, fn: le_256_int64},
{idx: 19, exp: _gt, fn: gt_256_int64},
{idx: 19, exp: _ge, fn: ge_256_int64},
{idx: 19, exp: _eq, fn: eq_256_int64},
{idx: 19, exp: _ne, fn: ne_256_int64},
{idx: 20, exp: _lt, fn: lt_32766_int64},
{idx: 20, exp: _le, fn: le_32766_int64},
{idx: 20, exp: _gt, fn: gt_32766_int64},
{idx: 20, exp: _ge, fn: ge_32766_int64},
{idx: 20, exp: _eq, fn: eq_32766_int64},
{idx: 20, exp: _ne, fn: ne_32766_int64},
{idx: 21, exp: _lt, fn: lt_32767_int64},
{idx: 21, exp: _le, fn: le_32767_int64},
{idx: 21, exp: _gt, fn: gt_32767_int64},
{idx: 21, exp: _ge, fn: ge_32767_int64},
{idx: 21, exp: _eq, fn: eq_32767_int64},
{idx: 21, exp: _ne, fn: ne_32767_int64},
{idx: 22, exp: _lt, fn: lt_32768_int64},
{idx: 22, exp: _le, fn: le_32768_int64},
{idx: 22, exp: _gt, fn: gt_32768_int64},
{idx: 22, exp: _ge, fn: ge_32768_int64},
{idx: 22, exp: _eq, fn: eq_32768_int64},
{idx: 22, exp: _ne, fn: ne_32768_int64},
{idx: 23, exp: _lt, fn: lt_65534_int64},
{idx: 23, exp: _le, fn: le_65534_int64},
{idx: 23, exp: _gt, fn: gt_65534_int64},
{idx: 23, exp: _ge, fn: ge_65534_int64},
{idx: 23, exp: _eq, fn: eq_65534_int64},
{idx: 23, exp: _ne, fn: ne_65534_int64},
{idx: 24, exp: _lt, fn: lt_65535_int64},
{idx: 24, exp: _le, fn: le_65535_int64},
{idx: 24, exp: _gt, fn: gt_65535_int64},
{idx: 24, exp: _ge, fn: ge_65535_int64},
{idx: 24, exp: _eq, fn: eq_65535_int64},
{idx: 24, exp: _ne, fn: ne_65535_int64},
{idx: 25, exp: _lt, fn: lt_65536_int64},
{idx: 25, exp: _le, fn: le_65536_int64},
{idx: 25, exp: _gt, fn: gt_65536_int64},
{idx: 25, exp: _ge, fn: ge_65536_int64},
{idx: 25, exp: _eq, fn: eq_65536_int64},
{idx: 25, exp: _ne, fn: ne_65536_int64},
{idx: 26, exp: _lt, fn: lt_2147483646_int64},
{idx: 26, exp: _le, fn: le_2147483646_int64},
{idx: 26, exp: _gt, fn: gt_2147483646_int64},
{idx: 26, exp: _ge, fn: ge_2147483646_int64},
{idx: 26, exp: _eq, fn: eq_2147483646_int64},
{idx: 26, exp: _ne, fn: ne_2147483646_int64},
{idx: 27, exp: _lt, fn: lt_2147483647_int64},
{idx: 27, exp: _le, fn: le_2147483647_int64},
{idx: 27, exp: _gt, fn: gt_2147483647_int64},
{idx: 27, exp: _ge, fn: ge_2147483647_int64},
{idx: 27, exp: _eq, fn: eq_2147483647_int64},
{idx: 27, exp: _ne, fn: ne_2147483647_int64},
{idx: 28, exp: _lt, fn: lt_2147483648_int64},
{idx: 28, exp: _le, fn: le_2147483648_int64},
{idx: 28, exp: _gt, fn: gt_2147483648_int64},
{idx: 28, exp: _ge, fn: ge_2147483648_int64},
{idx: 28, exp: _eq, fn: eq_2147483648_int64},
{idx: 28, exp: _ne, fn: ne_2147483648_int64},
{idx: 29, exp: _lt, fn: lt_4278190080_int64},
{idx: 29, exp: _le, fn: le_4278190080_int64},
{idx: 29, exp: _gt, fn: gt_4278190080_int64},
{idx: 29, exp: _ge, fn: ge_4278190080_int64},
{idx: 29, exp: _eq, fn: eq_4278190080_int64},
{idx: 29, exp: _ne, fn: ne_4278190080_int64},
{idx: 30, exp: _lt, fn: lt_4294967294_int64},
{idx: 30, exp: _le, fn: le_4294967294_int64},
{idx: 30, exp: _gt, fn: gt_4294967294_int64},
{idx: 30, exp: _ge, fn: ge_4294967294_int64},
{idx: 30, exp: _eq, fn: eq_4294967294_int64},
{idx: 30, exp: _ne, fn: ne_4294967294_int64},
{idx: 31, exp: _lt, fn: lt_4294967295_int64},
{idx: 31, exp: _le, fn: le_4294967295_int64},
{idx: 31, exp: _gt, fn: gt_4294967295_int64},
{idx: 31, exp: _ge, fn: ge_4294967295_int64},
{idx: 31, exp: _eq, fn: eq_4294967295_int64},
{idx: 31, exp: _ne, fn: ne_4294967295_int64},
{idx: 32, exp: _lt, fn: lt_4294967296_int64},
{idx: 32, exp: _le, fn: le_4294967296_int64},
{idx: 32, exp: _gt, fn: gt_4294967296_int64},
{idx: 32, exp: _ge, fn: ge_4294967296_int64},
{idx: 32, exp: _eq, fn: eq_4294967296_int64},
{idx: 32, exp: _ne, fn: ne_4294967296_int64},
{idx: 33, exp: _lt, fn: lt_1095216660480_int64},
{idx: 33, exp: _le, fn: le_1095216660480_int64},
{idx: 33, exp: _gt, fn: gt_1095216660480_int64},
{idx: 33, exp: _ge, fn: ge_1095216660480_int64},
{idx: 33, exp: _eq, fn: eq_1095216660480_int64},
{idx: 33, exp: _ne, fn: ne_1095216660480_int64},
{idx: 34, exp: _lt, fn: lt_9223372036854775806_int64},
{idx: 34, exp: _le, fn: le_9223372036854775806_int64},
{idx: 34, exp: _gt, fn: gt_9223372036854775806_int64},
{idx: 34, exp: _ge, fn: ge_9223372036854775806_int64},
{idx: 34, exp: _eq, fn: eq_9223372036854775806_int64},
{idx: 34, exp: _ne, fn: ne_9223372036854775806_int64},
{idx: 35, exp: _lt, fn: lt_9223372036854775807_int64},
{idx: 35, exp: _le, fn: le_9223372036854775807_int64},
{idx: 35, exp: _gt, fn: gt_9223372036854775807_int64},
{idx: 35, exp: _ge, fn: ge_9223372036854775807_int64},
{idx: 35, exp: _eq, fn: eq_9223372036854775807_int64},
{idx: 35, exp: _ne, fn: ne_9223372036854775807_int64},
{idx: 0, exp: lt, fn: lt_neg9223372036854775808_int64},
{idx: 0, exp: le, fn: le_neg9223372036854775808_int64},
{idx: 0, exp: gt, fn: gt_neg9223372036854775808_int64},
{idx: 0, exp: ge, fn: ge_neg9223372036854775808_int64},
{idx: 0, exp: eq, fn: eq_neg9223372036854775808_int64},
{idx: 0, exp: ne, fn: ne_neg9223372036854775808_int64},
{idx: 1, exp: lt, fn: lt_neg9223372036854775807_int64},
{idx: 1, exp: le, fn: le_neg9223372036854775807_int64},
{idx: 1, exp: gt, fn: gt_neg9223372036854775807_int64},
{idx: 1, exp: ge, fn: ge_neg9223372036854775807_int64},
{idx: 1, exp: eq, fn: eq_neg9223372036854775807_int64},
{idx: 1, exp: ne, fn: ne_neg9223372036854775807_int64},
{idx: 2, exp: lt, fn: lt_neg2147483649_int64},
{idx: 2, exp: le, fn: le_neg2147483649_int64},
{idx: 2, exp: gt, fn: gt_neg2147483649_int64},
{idx: 2, exp: ge, fn: ge_neg2147483649_int64},
{idx: 2, exp: eq, fn: eq_neg2147483649_int64},
{idx: 2, exp: ne, fn: ne_neg2147483649_int64},
{idx: 3, exp: lt, fn: lt_neg2147483648_int64},
{idx: 3, exp: le, fn: le_neg2147483648_int64},
{idx: 3, exp: gt, fn: gt_neg2147483648_int64},
{idx: 3, exp: ge, fn: ge_neg2147483648_int64},
{idx: 3, exp: eq, fn: eq_neg2147483648_int64},
{idx: 3, exp: ne, fn: ne_neg2147483648_int64},
{idx: 4, exp: lt, fn: lt_neg2147483647_int64},
{idx: 4, exp: le, fn: le_neg2147483647_int64},
{idx: 4, exp: gt, fn: gt_neg2147483647_int64},
{idx: 4, exp: ge, fn: ge_neg2147483647_int64},
{idx: 4, exp: eq, fn: eq_neg2147483647_int64},
{idx: 4, exp: ne, fn: ne_neg2147483647_int64},
{idx: 5, exp: lt, fn: lt_neg32769_int64},
{idx: 5, exp: le, fn: le_neg32769_int64},
{idx: 5, exp: gt, fn: gt_neg32769_int64},
{idx: 5, exp: ge, fn: ge_neg32769_int64},
{idx: 5, exp: eq, fn: eq_neg32769_int64},
{idx: 5, exp: ne, fn: ne_neg32769_int64},
{idx: 6, exp: lt, fn: lt_neg32768_int64},
{idx: 6, exp: le, fn: le_neg32768_int64},
{idx: 6, exp: gt, fn: gt_neg32768_int64},
{idx: 6, exp: ge, fn: ge_neg32768_int64},
{idx: 6, exp: eq, fn: eq_neg32768_int64},
{idx: 6, exp: ne, fn: ne_neg32768_int64},
{idx: 7, exp: lt, fn: lt_neg32767_int64},
{idx: 7, exp: le, fn: le_neg32767_int64},
{idx: 7, exp: gt, fn: gt_neg32767_int64},
{idx: 7, exp: ge, fn: ge_neg32767_int64},
{idx: 7, exp: eq, fn: eq_neg32767_int64},
{idx: 7, exp: ne, fn: ne_neg32767_int64},
{idx: 8, exp: lt, fn: lt_neg129_int64},
{idx: 8, exp: le, fn: le_neg129_int64},
{idx: 8, exp: gt, fn: gt_neg129_int64},
{idx: 8, exp: ge, fn: ge_neg129_int64},
{idx: 8, exp: eq, fn: eq_neg129_int64},
{idx: 8, exp: ne, fn: ne_neg129_int64},
{idx: 9, exp: lt, fn: lt_neg128_int64},
{idx: 9, exp: le, fn: le_neg128_int64},
{idx: 9, exp: gt, fn: gt_neg128_int64},
{idx: 9, exp: ge, fn: ge_neg128_int64},
{idx: 9, exp: eq, fn: eq_neg128_int64},
{idx: 9, exp: ne, fn: ne_neg128_int64},
{idx: 10, exp: lt, fn: lt_neg127_int64},
{idx: 10, exp: le, fn: le_neg127_int64},
{idx: 10, exp: gt, fn: gt_neg127_int64},
{idx: 10, exp: ge, fn: ge_neg127_int64},
{idx: 10, exp: eq, fn: eq_neg127_int64},
{idx: 10, exp: ne, fn: ne_neg127_int64},
{idx: 11, exp: lt, fn: lt_neg1_int64},
{idx: 11, exp: le, fn: le_neg1_int64},
{idx: 11, exp: gt, fn: gt_neg1_int64},
{idx: 11, exp: ge, fn: ge_neg1_int64},
{idx: 11, exp: eq, fn: eq_neg1_int64},
{idx: 11, exp: ne, fn: ne_neg1_int64},
{idx: 12, exp: lt, fn: lt_0_int64},
{idx: 12, exp: le, fn: le_0_int64},
{idx: 12, exp: gt, fn: gt_0_int64},
{idx: 12, exp: ge, fn: ge_0_int64},
{idx: 12, exp: eq, fn: eq_0_int64},
{idx: 12, exp: ne, fn: ne_0_int64},
{idx: 13, exp: lt, fn: lt_1_int64},
{idx: 13, exp: le, fn: le_1_int64},
{idx: 13, exp: gt, fn: gt_1_int64},
{idx: 13, exp: ge, fn: ge_1_int64},
{idx: 13, exp: eq, fn: eq_1_int64},
{idx: 13, exp: ne, fn: ne_1_int64},
{idx: 14, exp: lt, fn: lt_126_int64},
{idx: 14, exp: le, fn: le_126_int64},
{idx: 14, exp: gt, fn: gt_126_int64},
{idx: 14, exp: ge, fn: ge_126_int64},
{idx: 14, exp: eq, fn: eq_126_int64},
{idx: 14, exp: ne, fn: ne_126_int64},
{idx: 15, exp: lt, fn: lt_127_int64},
{idx: 15, exp: le, fn: le_127_int64},
{idx: 15, exp: gt, fn: gt_127_int64},
{idx: 15, exp: ge, fn: ge_127_int64},
{idx: 15, exp: eq, fn: eq_127_int64},
{idx: 15, exp: ne, fn: ne_127_int64},
{idx: 16, exp: lt, fn: lt_128_int64},
{idx: 16, exp: le, fn: le_128_int64},
{idx: 16, exp: gt, fn: gt_128_int64},
{idx: 16, exp: ge, fn: ge_128_int64},
{idx: 16, exp: eq, fn: eq_128_int64},
{idx: 16, exp: ne, fn: ne_128_int64},
{idx: 17, exp: lt, fn: lt_254_int64},
{idx: 17, exp: le, fn: le_254_int64},
{idx: 17, exp: gt, fn: gt_254_int64},
{idx: 17, exp: ge, fn: ge_254_int64},
{idx: 17, exp: eq, fn: eq_254_int64},
{idx: 17, exp: ne, fn: ne_254_int64},
{idx: 18, exp: lt, fn: lt_255_int64},
{idx: 18, exp: le, fn: le_255_int64},
{idx: 18, exp: gt, fn: gt_255_int64},
{idx: 18, exp: ge, fn: ge_255_int64},
{idx: 18, exp: eq, fn: eq_255_int64},
{idx: 18, exp: ne, fn: ne_255_int64},
{idx: 19, exp: lt, fn: lt_256_int64},
{idx: 19, exp: le, fn: le_256_int64},
{idx: 19, exp: gt, fn: gt_256_int64},
{idx: 19, exp: ge, fn: ge_256_int64},
{idx: 19, exp: eq, fn: eq_256_int64},
{idx: 19, exp: ne, fn: ne_256_int64},
{idx: 20, exp: lt, fn: lt_32766_int64},
{idx: 20, exp: le, fn: le_32766_int64},
{idx: 20, exp: gt, fn: gt_32766_int64},
{idx: 20, exp: ge, fn: ge_32766_int64},
{idx: 20, exp: eq, fn: eq_32766_int64},
{idx: 20, exp: ne, fn: ne_32766_int64},
{idx: 21, exp: lt, fn: lt_32767_int64},
{idx: 21, exp: le, fn: le_32767_int64},
{idx: 21, exp: gt, fn: gt_32767_int64},
{idx: 21, exp: ge, fn: ge_32767_int64},
{idx: 21, exp: eq, fn: eq_32767_int64},
{idx: 21, exp: ne, fn: ne_32767_int64},
{idx: 22, exp: lt, fn: lt_32768_int64},
{idx: 22, exp: le, fn: le_32768_int64},
{idx: 22, exp: gt, fn: gt_32768_int64},
{idx: 22, exp: ge, fn: ge_32768_int64},
{idx: 22, exp: eq, fn: eq_32768_int64},
{idx: 22, exp: ne, fn: ne_32768_int64},
{idx: 23, exp: lt, fn: lt_65534_int64},
{idx: 23, exp: le, fn: le_65534_int64},
{idx: 23, exp: gt, fn: gt_65534_int64},
{idx: 23, exp: ge, fn: ge_65534_int64},
{idx: 23, exp: eq, fn: eq_65534_int64},
{idx: 23, exp: ne, fn: ne_65534_int64},
{idx: 24, exp: lt, fn: lt_65535_int64},
{idx: 24, exp: le, fn: le_65535_int64},
{idx: 24, exp: gt, fn: gt_65535_int64},
{idx: 24, exp: ge, fn: ge_65535_int64},
{idx: 24, exp: eq, fn: eq_65535_int64},
{idx: 24, exp: ne, fn: ne_65535_int64},
{idx: 25, exp: lt, fn: lt_65536_int64},
{idx: 25, exp: le, fn: le_65536_int64},
{idx: 25, exp: gt, fn: gt_65536_int64},
{idx: 25, exp: ge, fn: ge_65536_int64},
{idx: 25, exp: eq, fn: eq_65536_int64},
{idx: 25, exp: ne, fn: ne_65536_int64},
{idx: 26, exp: lt, fn: lt_2147483646_int64},
{idx: 26, exp: le, fn: le_2147483646_int64},
{idx: 26, exp: gt, fn: gt_2147483646_int64},
{idx: 26, exp: ge, fn: ge_2147483646_int64},
{idx: 26, exp: eq, fn: eq_2147483646_int64},
{idx: 26, exp: ne, fn: ne_2147483646_int64},
{idx: 27, exp: lt, fn: lt_2147483647_int64},
{idx: 27, exp: le, fn: le_2147483647_int64},
{idx: 27, exp: gt, fn: gt_2147483647_int64},
{idx: 27, exp: ge, fn: ge_2147483647_int64},
{idx: 27, exp: eq, fn: eq_2147483647_int64},
{idx: 27, exp: ne, fn: ne_2147483647_int64},
{idx: 28, exp: lt, fn: lt_2147483648_int64},
{idx: 28, exp: le, fn: le_2147483648_int64},
{idx: 28, exp: gt, fn: gt_2147483648_int64},
{idx: 28, exp: ge, fn: ge_2147483648_int64},
{idx: 28, exp: eq, fn: eq_2147483648_int64},
{idx: 28, exp: ne, fn: ne_2147483648_int64},
{idx: 29, exp: lt, fn: lt_4278190080_int64},
{idx: 29, exp: le, fn: le_4278190080_int64},
{idx: 29, exp: gt, fn: gt_4278190080_int64},
{idx: 29, exp: ge, fn: ge_4278190080_int64},
{idx: 29, exp: eq, fn: eq_4278190080_int64},
{idx: 29, exp: ne, fn: ne_4278190080_int64},
{idx: 30, exp: lt, fn: lt_4294967294_int64},
{idx: 30, exp: le, fn: le_4294967294_int64},
{idx: 30, exp: gt, fn: gt_4294967294_int64},
{idx: 30, exp: ge, fn: ge_4294967294_int64},
{idx: 30, exp: eq, fn: eq_4294967294_int64},
{idx: 30, exp: ne, fn: ne_4294967294_int64},
{idx: 31, exp: lt, fn: lt_4294967295_int64},
{idx: 31, exp: le, fn: le_4294967295_int64},
{idx: 31, exp: gt, fn: gt_4294967295_int64},
{idx: 31, exp: ge, fn: ge_4294967295_int64},
{idx: 31, exp: eq, fn: eq_4294967295_int64},
{idx: 31, exp: ne, fn: ne_4294967295_int64},
{idx: 32, exp: lt, fn: lt_4294967296_int64},
{idx: 32, exp: le, fn: le_4294967296_int64},
{idx: 32, exp: gt, fn: gt_4294967296_int64},
{idx: 32, exp: ge, fn: ge_4294967296_int64},
{idx: 32, exp: eq, fn: eq_4294967296_int64},
{idx: 32, exp: ne, fn: ne_4294967296_int64},
{idx: 33, exp: lt, fn: lt_1095216660480_int64},
{idx: 33, exp: le, fn: le_1095216660480_int64},
{idx: 33, exp: gt, fn: gt_1095216660480_int64},
{idx: 33, exp: ge, fn: ge_1095216660480_int64},
{idx: 33, exp: eq, fn: eq_1095216660480_int64},
{idx: 33, exp: ne, fn: ne_1095216660480_int64},
{idx: 34, exp: lt, fn: lt_9223372036854775806_int64},
{idx: 34, exp: le, fn: le_9223372036854775806_int64},
{idx: 34, exp: gt, fn: gt_9223372036854775806_int64},
{idx: 34, exp: ge, fn: ge_9223372036854775806_int64},
{idx: 34, exp: eq, fn: eq_9223372036854775806_int64},
{idx: 34, exp: ne, fn: ne_9223372036854775806_int64},
{idx: 35, exp: lt, fn: lt_9223372036854775807_int64},
{idx: 35, exp: le, fn: le_9223372036854775807_int64},
{idx: 35, exp: gt, fn: gt_9223372036854775807_int64},
{idx: 35, exp: ge, fn: ge_9223372036854775807_int64},
{idx: 35, exp: eq, fn: eq_9223372036854775807_int64},
{idx: 35, exp: ne, fn: ne_9223372036854775807_int64},
}
// int32 tests
......@@ -1618,156 +1618,156 @@ var int32_tests = []struct {
exp result // expected results
fn func(int32) bool
}{
{idx: 0, exp: _lt, fn: lt_neg2147483648_int32},
{idx: 0, exp: _le, fn: le_neg2147483648_int32},
{idx: 0, exp: _gt, fn: gt_neg2147483648_int32},
{idx: 0, exp: _ge, fn: ge_neg2147483648_int32},
{idx: 0, exp: _eq, fn: eq_neg2147483648_int32},
{idx: 0, exp: _ne, fn: ne_neg2147483648_int32},
{idx: 1, exp: _lt, fn: lt_neg2147483647_int32},
{idx: 1, exp: _le, fn: le_neg2147483647_int32},
{idx: 1, exp: _gt, fn: gt_neg2147483647_int32},
{idx: 1, exp: _ge, fn: ge_neg2147483647_int32},
{idx: 1, exp: _eq, fn: eq_neg2147483647_int32},
{idx: 1, exp: _ne, fn: ne_neg2147483647_int32},
{idx: 2, exp: _lt, fn: lt_neg32769_int32},
{idx: 2, exp: _le, fn: le_neg32769_int32},
{idx: 2, exp: _gt, fn: gt_neg32769_int32},
{idx: 2, exp: _ge, fn: ge_neg32769_int32},
{idx: 2, exp: _eq, fn: eq_neg32769_int32},
{idx: 2, exp: _ne, fn: ne_neg32769_int32},
{idx: 3, exp: _lt, fn: lt_neg32768_int32},
{idx: 3, exp: _le, fn: le_neg32768_int32},
{idx: 3, exp: _gt, fn: gt_neg32768_int32},
{idx: 3, exp: _ge, fn: ge_neg32768_int32},
{idx: 3, exp: _eq, fn: eq_neg32768_int32},
{idx: 3, exp: _ne, fn: ne_neg32768_int32},
{idx: 4, exp: _lt, fn: lt_neg32767_int32},
{idx: 4, exp: _le, fn: le_neg32767_int32},
{idx: 4, exp: _gt, fn: gt_neg32767_int32},
{idx: 4, exp: _ge, fn: ge_neg32767_int32},
{idx: 4, exp: _eq, fn: eq_neg32767_int32},
{idx: 4, exp: _ne, fn: ne_neg32767_int32},
{idx: 5, exp: _lt, fn: lt_neg129_int32},
{idx: 5, exp: _le, fn: le_neg129_int32},
{idx: 5, exp: _gt, fn: gt_neg129_int32},
{idx: 5, exp: _ge, fn: ge_neg129_int32},
{idx: 5, exp: _eq, fn: eq_neg129_int32},
{idx: 5, exp: _ne, fn: ne_neg129_int32},
{idx: 6, exp: _lt, fn: lt_neg128_int32},
{idx: 6, exp: _le, fn: le_neg128_int32},
{idx: 6, exp: _gt, fn: gt_neg128_int32},
{idx: 6, exp: _ge, fn: ge_neg128_int32},
{idx: 6, exp: _eq, fn: eq_neg128_int32},
{idx: 6, exp: _ne, fn: ne_neg128_int32},
{idx: 7, exp: _lt, fn: lt_neg127_int32},
{idx: 7, exp: _le, fn: le_neg127_int32},
{idx: 7, exp: _gt, fn: gt_neg127_int32},
{idx: 7, exp: _ge, fn: ge_neg127_int32},
{idx: 7, exp: _eq, fn: eq_neg127_int32},
{idx: 7, exp: _ne, fn: ne_neg127_int32},
{idx: 8, exp: _lt, fn: lt_neg1_int32},
{idx: 8, exp: _le, fn: le_neg1_int32},
{idx: 8, exp: _gt, fn: gt_neg1_int32},
{idx: 8, exp: _ge, fn: ge_neg1_int32},
{idx: 8, exp: _eq, fn: eq_neg1_int32},
{idx: 8, exp: _ne, fn: ne_neg1_int32},
{idx: 9, exp: _lt, fn: lt_0_int32},
{idx: 9, exp: _le, fn: le_0_int32},
{idx: 9, exp: _gt, fn: gt_0_int32},
{idx: 9, exp: _ge, fn: ge_0_int32},
{idx: 9, exp: _eq, fn: eq_0_int32},
{idx: 9, exp: _ne, fn: ne_0_int32},
{idx: 10, exp: _lt, fn: lt_1_int32},
{idx: 10, exp: _le, fn: le_1_int32},
{idx: 10, exp: _gt, fn: gt_1_int32},
{idx: 10, exp: _ge, fn: ge_1_int32},
{idx: 10, exp: _eq, fn: eq_1_int32},
{idx: 10, exp: _ne, fn: ne_1_int32},
{idx: 11, exp: _lt, fn: lt_126_int32},
{idx: 11, exp: _le, fn: le_126_int32},
{idx: 11, exp: _gt, fn: gt_126_int32},
{idx: 11, exp: _ge, fn: ge_126_int32},
{idx: 11, exp: _eq, fn: eq_126_int32},
{idx: 11, exp: _ne, fn: ne_126_int32},
{idx: 12, exp: _lt, fn: lt_127_int32},
{idx: 12, exp: _le, fn: le_127_int32},
{idx: 12, exp: _gt, fn: gt_127_int32},
{idx: 12, exp: _ge, fn: ge_127_int32},
{idx: 12, exp: _eq, fn: eq_127_int32},
{idx: 12, exp: _ne, fn: ne_127_int32},
{idx: 13, exp: _lt, fn: lt_128_int32},
{idx: 13, exp: _le, fn: le_128_int32},
{idx: 13, exp: _gt, fn: gt_128_int32},
{idx: 13, exp: _ge, fn: ge_128_int32},
{idx: 13, exp: _eq, fn: eq_128_int32},
{idx: 13, exp: _ne, fn: ne_128_int32},
{idx: 14, exp: _lt, fn: lt_254_int32},
{idx: 14, exp: _le, fn: le_254_int32},
{idx: 14, exp: _gt, fn: gt_254_int32},
{idx: 14, exp: _ge, fn: ge_254_int32},
{idx: 14, exp: _eq, fn: eq_254_int32},
{idx: 14, exp: _ne, fn: ne_254_int32},
{idx: 15, exp: _lt, fn: lt_255_int32},
{idx: 15, exp: _le, fn: le_255_int32},
{idx: 15, exp: _gt, fn: gt_255_int32},
{idx: 15, exp: _ge, fn: ge_255_int32},
{idx: 15, exp: _eq, fn: eq_255_int32},
{idx: 15, exp: _ne, fn: ne_255_int32},
{idx: 16, exp: _lt, fn: lt_256_int32},
{idx: 16, exp: _le, fn: le_256_int32},
{idx: 16, exp: _gt, fn: gt_256_int32},
{idx: 16, exp: _ge, fn: ge_256_int32},
{idx: 16, exp: _eq, fn: eq_256_int32},
{idx: 16, exp: _ne, fn: ne_256_int32},
{idx: 17, exp: _lt, fn: lt_32766_int32},
{idx: 17, exp: _le, fn: le_32766_int32},
{idx: 17, exp: _gt, fn: gt_32766_int32},
{idx: 17, exp: _ge, fn: ge_32766_int32},
{idx: 17, exp: _eq, fn: eq_32766_int32},
{idx: 17, exp: _ne, fn: ne_32766_int32},
{idx: 18, exp: _lt, fn: lt_32767_int32},
{idx: 18, exp: _le, fn: le_32767_int32},
{idx: 18, exp: _gt, fn: gt_32767_int32},
{idx: 18, exp: _ge, fn: ge_32767_int32},
{idx: 18, exp: _eq, fn: eq_32767_int32},
{idx: 18, exp: _ne, fn: ne_32767_int32},
{idx: 19, exp: _lt, fn: lt_32768_int32},
{idx: 19, exp: _le, fn: le_32768_int32},
{idx: 19, exp: _gt, fn: gt_32768_int32},
{idx: 19, exp: _ge, fn: ge_32768_int32},
{idx: 19, exp: _eq, fn: eq_32768_int32},
{idx: 19, exp: _ne, fn: ne_32768_int32},
{idx: 20, exp: _lt, fn: lt_65534_int32},
{idx: 20, exp: _le, fn: le_65534_int32},
{idx: 20, exp: _gt, fn: gt_65534_int32},
{idx: 20, exp: _ge, fn: ge_65534_int32},
{idx: 20, exp: _eq, fn: eq_65534_int32},
{idx: 20, exp: _ne, fn: ne_65534_int32},
{idx: 21, exp: _lt, fn: lt_65535_int32},
{idx: 21, exp: _le, fn: le_65535_int32},
{idx: 21, exp: _gt, fn: gt_65535_int32},
{idx: 21, exp: _ge, fn: ge_65535_int32},
{idx: 21, exp: _eq, fn: eq_65535_int32},
{idx: 21, exp: _ne, fn: ne_65535_int32},
{idx: 22, exp: _lt, fn: lt_65536_int32},
{idx: 22, exp: _le, fn: le_65536_int32},
{idx: 22, exp: _gt, fn: gt_65536_int32},
{idx: 22, exp: _ge, fn: ge_65536_int32},
{idx: 22, exp: _eq, fn: eq_65536_int32},
{idx: 22, exp: _ne, fn: ne_65536_int32},
{idx: 23, exp: _lt, fn: lt_2147483646_int32},
{idx: 23, exp: _le, fn: le_2147483646_int32},
{idx: 23, exp: _gt, fn: gt_2147483646_int32},
{idx: 23, exp: _ge, fn: ge_2147483646_int32},
{idx: 23, exp: _eq, fn: eq_2147483646_int32},
{idx: 23, exp: _ne, fn: ne_2147483646_int32},
{idx: 24, exp: _lt, fn: lt_2147483647_int32},
{idx: 24, exp: _le, fn: le_2147483647_int32},
{idx: 24, exp: _gt, fn: gt_2147483647_int32},
{idx: 24, exp: _ge, fn: ge_2147483647_int32},
{idx: 24, exp: _eq, fn: eq_2147483647_int32},
{idx: 24, exp: _ne, fn: ne_2147483647_int32},
{idx: 0, exp: lt, fn: lt_neg2147483648_int32},
{idx: 0, exp: le, fn: le_neg2147483648_int32},
{idx: 0, exp: gt, fn: gt_neg2147483648_int32},
{idx: 0, exp: ge, fn: ge_neg2147483648_int32},
{idx: 0, exp: eq, fn: eq_neg2147483648_int32},
{idx: 0, exp: ne, fn: ne_neg2147483648_int32},
{idx: 1, exp: lt, fn: lt_neg2147483647_int32},
{idx: 1, exp: le, fn: le_neg2147483647_int32},
{idx: 1, exp: gt, fn: gt_neg2147483647_int32},
{idx: 1, exp: ge, fn: ge_neg2147483647_int32},
{idx: 1, exp: eq, fn: eq_neg2147483647_int32},
{idx: 1, exp: ne, fn: ne_neg2147483647_int32},
{idx: 2, exp: lt, fn: lt_neg32769_int32},
{idx: 2, exp: le, fn: le_neg32769_int32},
{idx: 2, exp: gt, fn: gt_neg32769_int32},
{idx: 2, exp: ge, fn: ge_neg32769_int32},
{idx: 2, exp: eq, fn: eq_neg32769_int32},
{idx: 2, exp: ne, fn: ne_neg32769_int32},
{idx: 3, exp: lt, fn: lt_neg32768_int32},
{idx: 3, exp: le, fn: le_neg32768_int32},
{idx: 3, exp: gt, fn: gt_neg32768_int32},
{idx: 3, exp: ge, fn: ge_neg32768_int32},
{idx: 3, exp: eq, fn: eq_neg32768_int32},
{idx: 3, exp: ne, fn: ne_neg32768_int32},
{idx: 4, exp: lt, fn: lt_neg32767_int32},
{idx: 4, exp: le, fn: le_neg32767_int32},
{idx: 4, exp: gt, fn: gt_neg32767_int32},
{idx: 4, exp: ge, fn: ge_neg32767_int32},
{idx: 4, exp: eq, fn: eq_neg32767_int32},
{idx: 4, exp: ne, fn: ne_neg32767_int32},
{idx: 5, exp: lt, fn: lt_neg129_int32},
{idx: 5, exp: le, fn: le_neg129_int32},
{idx: 5, exp: gt, fn: gt_neg129_int32},
{idx: 5, exp: ge, fn: ge_neg129_int32},
{idx: 5, exp: eq, fn: eq_neg129_int32},
{idx: 5, exp: ne, fn: ne_neg129_int32},
{idx: 6, exp: lt, fn: lt_neg128_int32},
{idx: 6, exp: le, fn: le_neg128_int32},
{idx: 6, exp: gt, fn: gt_neg128_int32},
{idx: 6, exp: ge, fn: ge_neg128_int32},
{idx: 6, exp: eq, fn: eq_neg128_int32},
{idx: 6, exp: ne, fn: ne_neg128_int32},
{idx: 7, exp: lt, fn: lt_neg127_int32},
{idx: 7, exp: le, fn: le_neg127_int32},
{idx: 7, exp: gt, fn: gt_neg127_int32},
{idx: 7, exp: ge, fn: ge_neg127_int32},
{idx: 7, exp: eq, fn: eq_neg127_int32},
{idx: 7, exp: ne, fn: ne_neg127_int32},
{idx: 8, exp: lt, fn: lt_neg1_int32},
{idx: 8, exp: le, fn: le_neg1_int32},
{idx: 8, exp: gt, fn: gt_neg1_int32},
{idx: 8, exp: ge, fn: ge_neg1_int32},
{idx: 8, exp: eq, fn: eq_neg1_int32},
{idx: 8, exp: ne, fn: ne_neg1_int32},
{idx: 9, exp: lt, fn: lt_0_int32},
{idx: 9, exp: le, fn: le_0_int32},
{idx: 9, exp: gt, fn: gt_0_int32},
{idx: 9, exp: ge, fn: ge_0_int32},
{idx: 9, exp: eq, fn: eq_0_int32},
{idx: 9, exp: ne, fn: ne_0_int32},
{idx: 10, exp: lt, fn: lt_1_int32},
{idx: 10, exp: le, fn: le_1_int32},
{idx: 10, exp: gt, fn: gt_1_int32},
{idx: 10, exp: ge, fn: ge_1_int32},
{idx: 10, exp: eq, fn: eq_1_int32},
{idx: 10, exp: ne, fn: ne_1_int32},
{idx: 11, exp: lt, fn: lt_126_int32},
{idx: 11, exp: le, fn: le_126_int32},
{idx: 11, exp: gt, fn: gt_126_int32},
{idx: 11, exp: ge, fn: ge_126_int32},
{idx: 11, exp: eq, fn: eq_126_int32},
{idx: 11, exp: ne, fn: ne_126_int32},
{idx: 12, exp: lt, fn: lt_127_int32},
{idx: 12, exp: le, fn: le_127_int32},
{idx: 12, exp: gt, fn: gt_127_int32},
{idx: 12, exp: ge, fn: ge_127_int32},
{idx: 12, exp: eq, fn: eq_127_int32},
{idx: 12, exp: ne, fn: ne_127_int32},
{idx: 13, exp: lt, fn: lt_128_int32},
{idx: 13, exp: le, fn: le_128_int32},
{idx: 13, exp: gt, fn: gt_128_int32},
{idx: 13, exp: ge, fn: ge_128_int32},
{idx: 13, exp: eq, fn: eq_128_int32},
{idx: 13, exp: ne, fn: ne_128_int32},
{idx: 14, exp: lt, fn: lt_254_int32},
{idx: 14, exp: le, fn: le_254_int32},
{idx: 14, exp: gt, fn: gt_254_int32},
{idx: 14, exp: ge, fn: ge_254_int32},
{idx: 14, exp: eq, fn: eq_254_int32},
{idx: 14, exp: ne, fn: ne_254_int32},
{idx: 15, exp: lt, fn: lt_255_int32},
{idx: 15, exp: le, fn: le_255_int32},
{idx: 15, exp: gt, fn: gt_255_int32},
{idx: 15, exp: ge, fn: ge_255_int32},
{idx: 15, exp: eq, fn: eq_255_int32},
{idx: 15, exp: ne, fn: ne_255_int32},
{idx: 16, exp: lt, fn: lt_256_int32},
{idx: 16, exp: le, fn: le_256_int32},
{idx: 16, exp: gt, fn: gt_256_int32},
{idx: 16, exp: ge, fn: ge_256_int32},
{idx: 16, exp: eq, fn: eq_256_int32},
{idx: 16, exp: ne, fn: ne_256_int32},
{idx: 17, exp: lt, fn: lt_32766_int32},
{idx: 17, exp: le, fn: le_32766_int32},
{idx: 17, exp: gt, fn: gt_32766_int32},
{idx: 17, exp: ge, fn: ge_32766_int32},
{idx: 17, exp: eq, fn: eq_32766_int32},
{idx: 17, exp: ne, fn: ne_32766_int32},
{idx: 18, exp: lt, fn: lt_32767_int32},
{idx: 18, exp: le, fn: le_32767_int32},
{idx: 18, exp: gt, fn: gt_32767_int32},
{idx: 18, exp: ge, fn: ge_32767_int32},
{idx: 18, exp: eq, fn: eq_32767_int32},
{idx: 18, exp: ne, fn: ne_32767_int32},
{idx: 19, exp: lt, fn: lt_32768_int32},
{idx: 19, exp: le, fn: le_32768_int32},
{idx: 19, exp: gt, fn: gt_32768_int32},
{idx: 19, exp: ge, fn: ge_32768_int32},
{idx: 19, exp: eq, fn: eq_32768_int32},
{idx: 19, exp: ne, fn: ne_32768_int32},
{idx: 20, exp: lt, fn: lt_65534_int32},
{idx: 20, exp: le, fn: le_65534_int32},
{idx: 20, exp: gt, fn: gt_65534_int32},
{idx: 20, exp: ge, fn: ge_65534_int32},
{idx: 20, exp: eq, fn: eq_65534_int32},
{idx: 20, exp: ne, fn: ne_65534_int32},
{idx: 21, exp: lt, fn: lt_65535_int32},
{idx: 21, exp: le, fn: le_65535_int32},
{idx: 21, exp: gt, fn: gt_65535_int32},
{idx: 21, exp: ge, fn: ge_65535_int32},
{idx: 21, exp: eq, fn: eq_65535_int32},
{idx: 21, exp: ne, fn: ne_65535_int32},
{idx: 22, exp: lt, fn: lt_65536_int32},
{idx: 22, exp: le, fn: le_65536_int32},
{idx: 22, exp: gt, fn: gt_65536_int32},
{idx: 22, exp: ge, fn: ge_65536_int32},
{idx: 22, exp: eq, fn: eq_65536_int32},
{idx: 22, exp: ne, fn: ne_65536_int32},
{idx: 23, exp: lt, fn: lt_2147483646_int32},
{idx: 23, exp: le, fn: le_2147483646_int32},
{idx: 23, exp: gt, fn: gt_2147483646_int32},
{idx: 23, exp: ge, fn: ge_2147483646_int32},
{idx: 23, exp: eq, fn: eq_2147483646_int32},
{idx: 23, exp: ne, fn: ne_2147483646_int32},
{idx: 24, exp: lt, fn: lt_2147483647_int32},
{idx: 24, exp: le, fn: le_2147483647_int32},
{idx: 24, exp: gt, fn: gt_2147483647_int32},
{idx: 24, exp: ge, fn: ge_2147483647_int32},
{idx: 24, exp: eq, fn: eq_2147483647_int32},
{idx: 24, exp: ne, fn: ne_2147483647_int32},
}
// int16 tests
......@@ -1892,102 +1892,102 @@ var int16_tests = []struct {
exp result // expected results
fn func(int16) bool
}{
{idx: 0, exp: _lt, fn: lt_neg32768_int16},
{idx: 0, exp: _le, fn: le_neg32768_int16},
{idx: 0, exp: _gt, fn: gt_neg32768_int16},
{idx: 0, exp: _ge, fn: ge_neg32768_int16},
{idx: 0, exp: _eq, fn: eq_neg32768_int16},
{idx: 0, exp: _ne, fn: ne_neg32768_int16},
{idx: 1, exp: _lt, fn: lt_neg32767_int16},
{idx: 1, exp: _le, fn: le_neg32767_int16},
{idx: 1, exp: _gt, fn: gt_neg32767_int16},
{idx: 1, exp: _ge, fn: ge_neg32767_int16},
{idx: 1, exp: _eq, fn: eq_neg32767_int16},
{idx: 1, exp: _ne, fn: ne_neg32767_int16},
{idx: 2, exp: _lt, fn: lt_neg129_int16},
{idx: 2, exp: _le, fn: le_neg129_int16},
{idx: 2, exp: _gt, fn: gt_neg129_int16},
{idx: 2, exp: _ge, fn: ge_neg129_int16},
{idx: 2, exp: _eq, fn: eq_neg129_int16},
{idx: 2, exp: _ne, fn: ne_neg129_int16},
{idx: 3, exp: _lt, fn: lt_neg128_int16},
{idx: 3, exp: _le, fn: le_neg128_int16},
{idx: 3, exp: _gt, fn: gt_neg128_int16},
{idx: 3, exp: _ge, fn: ge_neg128_int16},
{idx: 3, exp: _eq, fn: eq_neg128_int16},
{idx: 3, exp: _ne, fn: ne_neg128_int16},
{idx: 4, exp: _lt, fn: lt_neg127_int16},
{idx: 4, exp: _le, fn: le_neg127_int16},
{idx: 4, exp: _gt, fn: gt_neg127_int16},
{idx: 4, exp: _ge, fn: ge_neg127_int16},
{idx: 4, exp: _eq, fn: eq_neg127_int16},
{idx: 4, exp: _ne, fn: ne_neg127_int16},
{idx: 5, exp: _lt, fn: lt_neg1_int16},
{idx: 5, exp: _le, fn: le_neg1_int16},
{idx: 5, exp: _gt, fn: gt_neg1_int16},
{idx: 5, exp: _ge, fn: ge_neg1_int16},
{idx: 5, exp: _eq, fn: eq_neg1_int16},
{idx: 5, exp: _ne, fn: ne_neg1_int16},
{idx: 6, exp: _lt, fn: lt_0_int16},
{idx: 6, exp: _le, fn: le_0_int16},
{idx: 6, exp: _gt, fn: gt_0_int16},
{idx: 6, exp: _ge, fn: ge_0_int16},
{idx: 6, exp: _eq, fn: eq_0_int16},
{idx: 6, exp: _ne, fn: ne_0_int16},
{idx: 7, exp: _lt, fn: lt_1_int16},
{idx: 7, exp: _le, fn: le_1_int16},
{idx: 7, exp: _gt, fn: gt_1_int16},
{idx: 7, exp: _ge, fn: ge_1_int16},
{idx: 7, exp: _eq, fn: eq_1_int16},
{idx: 7, exp: _ne, fn: ne_1_int16},
{idx: 8, exp: _lt, fn: lt_126_int16},
{idx: 8, exp: _le, fn: le_126_int16},
{idx: 8, exp: _gt, fn: gt_126_int16},
{idx: 8, exp: _ge, fn: ge_126_int16},
{idx: 8, exp: _eq, fn: eq_126_int16},
{idx: 8, exp: _ne, fn: ne_126_int16},
{idx: 9, exp: _lt, fn: lt_127_int16},
{idx: 9, exp: _le, fn: le_127_int16},
{idx: 9, exp: _gt, fn: gt_127_int16},
{idx: 9, exp: _ge, fn: ge_127_int16},
{idx: 9, exp: _eq, fn: eq_127_int16},
{idx: 9, exp: _ne, fn: ne_127_int16},
{idx: 10, exp: _lt, fn: lt_128_int16},
{idx: 10, exp: _le, fn: le_128_int16},
{idx: 10, exp: _gt, fn: gt_128_int16},
{idx: 10, exp: _ge, fn: ge_128_int16},
{idx: 10, exp: _eq, fn: eq_128_int16},
{idx: 10, exp: _ne, fn: ne_128_int16},
{idx: 11, exp: _lt, fn: lt_254_int16},
{idx: 11, exp: _le, fn: le_254_int16},
{idx: 11, exp: _gt, fn: gt_254_int16},
{idx: 11, exp: _ge, fn: ge_254_int16},
{idx: 11, exp: _eq, fn: eq_254_int16},
{idx: 11, exp: _ne, fn: ne_254_int16},
{idx: 12, exp: _lt, fn: lt_255_int16},
{idx: 12, exp: _le, fn: le_255_int16},
{idx: 12, exp: _gt, fn: gt_255_int16},
{idx: 12, exp: _ge, fn: ge_255_int16},
{idx: 12, exp: _eq, fn: eq_255_int16},
{idx: 12, exp: _ne, fn: ne_255_int16},
{idx: 13, exp: _lt, fn: lt_256_int16},
{idx: 13, exp: _le, fn: le_256_int16},
{idx: 13, exp: _gt, fn: gt_256_int16},
{idx: 13, exp: _ge, fn: ge_256_int16},
{idx: 13, exp: _eq, fn: eq_256_int16},
{idx: 13, exp: _ne, fn: ne_256_int16},
{idx: 14, exp: _lt, fn: lt_32766_int16},
{idx: 14, exp: _le, fn: le_32766_int16},
{idx: 14, exp: _gt, fn: gt_32766_int16},
{idx: 14, exp: _ge, fn: ge_32766_int16},
{idx: 14, exp: _eq, fn: eq_32766_int16},
{idx: 14, exp: _ne, fn: ne_32766_int16},
{idx: 15, exp: _lt, fn: lt_32767_int16},
{idx: 15, exp: _le, fn: le_32767_int16},
{idx: 15, exp: _gt, fn: gt_32767_int16},
{idx: 15, exp: _ge, fn: ge_32767_int16},
{idx: 15, exp: _eq, fn: eq_32767_int16},
{idx: 15, exp: _ne, fn: ne_32767_int16},
{idx: 0, exp: lt, fn: lt_neg32768_int16},
{idx: 0, exp: le, fn: le_neg32768_int16},
{idx: 0, exp: gt, fn: gt_neg32768_int16},
{idx: 0, exp: ge, fn: ge_neg32768_int16},
{idx: 0, exp: eq, fn: eq_neg32768_int16},
{idx: 0, exp: ne, fn: ne_neg32768_int16},
{idx: 1, exp: lt, fn: lt_neg32767_int16},
{idx: 1, exp: le, fn: le_neg32767_int16},
{idx: 1, exp: gt, fn: gt_neg32767_int16},
{idx: 1, exp: ge, fn: ge_neg32767_int16},
{idx: 1, exp: eq, fn: eq_neg32767_int16},
{idx: 1, exp: ne, fn: ne_neg32767_int16},
{idx: 2, exp: lt, fn: lt_neg129_int16},
{idx: 2, exp: le, fn: le_neg129_int16},
{idx: 2, exp: gt, fn: gt_neg129_int16},
{idx: 2, exp: ge, fn: ge_neg129_int16},
{idx: 2, exp: eq, fn: eq_neg129_int16},
{idx: 2, exp: ne, fn: ne_neg129_int16},
{idx: 3, exp: lt, fn: lt_neg128_int16},
{idx: 3, exp: le, fn: le_neg128_int16},
{idx: 3, exp: gt, fn: gt_neg128_int16},
{idx: 3, exp: ge, fn: ge_neg128_int16},
{idx: 3, exp: eq, fn: eq_neg128_int16},
{idx: 3, exp: ne, fn: ne_neg128_int16},
{idx: 4, exp: lt, fn: lt_neg127_int16},
{idx: 4, exp: le, fn: le_neg127_int16},
{idx: 4, exp: gt, fn: gt_neg127_int16},
{idx: 4, exp: ge, fn: ge_neg127_int16},
{idx: 4, exp: eq, fn: eq_neg127_int16},
{idx: 4, exp: ne, fn: ne_neg127_int16},
{idx: 5, exp: lt, fn: lt_neg1_int16},
{idx: 5, exp: le, fn: le_neg1_int16},
{idx: 5, exp: gt, fn: gt_neg1_int16},
{idx: 5, exp: ge, fn: ge_neg1_int16},
{idx: 5, exp: eq, fn: eq_neg1_int16},
{idx: 5, exp: ne, fn: ne_neg1_int16},
{idx: 6, exp: lt, fn: lt_0_int16},
{idx: 6, exp: le, fn: le_0_int16},
{idx: 6, exp: gt, fn: gt_0_int16},
{idx: 6, exp: ge, fn: ge_0_int16},
{idx: 6, exp: eq, fn: eq_0_int16},
{idx: 6, exp: ne, fn: ne_0_int16},
{idx: 7, exp: lt, fn: lt_1_int16},
{idx: 7, exp: le, fn: le_1_int16},
{idx: 7, exp: gt, fn: gt_1_int16},
{idx: 7, exp: ge, fn: ge_1_int16},
{idx: 7, exp: eq, fn: eq_1_int16},
{idx: 7, exp: ne, fn: ne_1_int16},
{idx: 8, exp: lt, fn: lt_126_int16},
{idx: 8, exp: le, fn: le_126_int16},
{idx: 8, exp: gt, fn: gt_126_int16},
{idx: 8, exp: ge, fn: ge_126_int16},
{idx: 8, exp: eq, fn: eq_126_int16},
{idx: 8, exp: ne, fn: ne_126_int16},
{idx: 9, exp: lt, fn: lt_127_int16},
{idx: 9, exp: le, fn: le_127_int16},
{idx: 9, exp: gt, fn: gt_127_int16},
{idx: 9, exp: ge, fn: ge_127_int16},
{idx: 9, exp: eq, fn: eq_127_int16},
{idx: 9, exp: ne, fn: ne_127_int16},
{idx: 10, exp: lt, fn: lt_128_int16},
{idx: 10, exp: le, fn: le_128_int16},
{idx: 10, exp: gt, fn: gt_128_int16},
{idx: 10, exp: ge, fn: ge_128_int16},
{idx: 10, exp: eq, fn: eq_128_int16},
{idx: 10, exp: ne, fn: ne_128_int16},
{idx: 11, exp: lt, fn: lt_254_int16},
{idx: 11, exp: le, fn: le_254_int16},
{idx: 11, exp: gt, fn: gt_254_int16},
{idx: 11, exp: ge, fn: ge_254_int16},
{idx: 11, exp: eq, fn: eq_254_int16},
{idx: 11, exp: ne, fn: ne_254_int16},
{idx: 12, exp: lt, fn: lt_255_int16},
{idx: 12, exp: le, fn: le_255_int16},
{idx: 12, exp: gt, fn: gt_255_int16},
{idx: 12, exp: ge, fn: ge_255_int16},
{idx: 12, exp: eq, fn: eq_255_int16},
{idx: 12, exp: ne, fn: ne_255_int16},
{idx: 13, exp: lt, fn: lt_256_int16},
{idx: 13, exp: le, fn: le_256_int16},
{idx: 13, exp: gt, fn: gt_256_int16},
{idx: 13, exp: ge, fn: ge_256_int16},
{idx: 13, exp: eq, fn: eq_256_int16},
{idx: 13, exp: ne, fn: ne_256_int16},
{idx: 14, exp: lt, fn: lt_32766_int16},
{idx: 14, exp: le, fn: le_32766_int16},
{idx: 14, exp: gt, fn: gt_32766_int16},
{idx: 14, exp: ge, fn: ge_32766_int16},
{idx: 14, exp: eq, fn: eq_32766_int16},
{idx: 14, exp: ne, fn: ne_32766_int16},
{idx: 15, exp: lt, fn: lt_32767_int16},
{idx: 15, exp: le, fn: le_32767_int16},
{idx: 15, exp: gt, fn: gt_32767_int16},
{idx: 15, exp: ge, fn: ge_32767_int16},
{idx: 15, exp: eq, fn: eq_32767_int16},
{idx: 15, exp: ne, fn: ne_32767_int16},
}
// int8 tests
......@@ -2049,48 +2049,48 @@ var int8_tests = []struct {
exp result // expected results
fn func(int8) bool
}{
{idx: 0, exp: _lt, fn: lt_neg128_int8},
{idx: 0, exp: _le, fn: le_neg128_int8},
{idx: 0, exp: _gt, fn: gt_neg128_int8},
{idx: 0, exp: _ge, fn: ge_neg128_int8},
{idx: 0, exp: _eq, fn: eq_neg128_int8},
{idx: 0, exp: _ne, fn: ne_neg128_int8},
{idx: 1, exp: _lt, fn: lt_neg127_int8},
{idx: 1, exp: _le, fn: le_neg127_int8},
{idx: 1, exp: _gt, fn: gt_neg127_int8},
{idx: 1, exp: _ge, fn: ge_neg127_int8},
{idx: 1, exp: _eq, fn: eq_neg127_int8},
{idx: 1, exp: _ne, fn: ne_neg127_int8},
{idx: 2, exp: _lt, fn: lt_neg1_int8},
{idx: 2, exp: _le, fn: le_neg1_int8},
{idx: 2, exp: _gt, fn: gt_neg1_int8},
{idx: 2, exp: _ge, fn: ge_neg1_int8},
{idx: 2, exp: _eq, fn: eq_neg1_int8},
{idx: 2, exp: _ne, fn: ne_neg1_int8},
{idx: 3, exp: _lt, fn: lt_0_int8},
{idx: 3, exp: _le, fn: le_0_int8},
{idx: 3, exp: _gt, fn: gt_0_int8},
{idx: 3, exp: _ge, fn: ge_0_int8},
{idx: 3, exp: _eq, fn: eq_0_int8},
{idx: 3, exp: _ne, fn: ne_0_int8},
{idx: 4, exp: _lt, fn: lt_1_int8},
{idx: 4, exp: _le, fn: le_1_int8},
{idx: 4, exp: _gt, fn: gt_1_int8},
{idx: 4, exp: _ge, fn: ge_1_int8},
{idx: 4, exp: _eq, fn: eq_1_int8},
{idx: 4, exp: _ne, fn: ne_1_int8},
{idx: 5, exp: _lt, fn: lt_126_int8},
{idx: 5, exp: _le, fn: le_126_int8},
{idx: 5, exp: _gt, fn: gt_126_int8},
{idx: 5, exp: _ge, fn: ge_126_int8},
{idx: 5, exp: _eq, fn: eq_126_int8},
{idx: 5, exp: _ne, fn: ne_126_int8},
{idx: 6, exp: _lt, fn: lt_127_int8},
{idx: 6, exp: _le, fn: le_127_int8},
{idx: 6, exp: _gt, fn: gt_127_int8},
{idx: 6, exp: _ge, fn: ge_127_int8},
{idx: 6, exp: _eq, fn: eq_127_int8},
{idx: 6, exp: _ne, fn: ne_127_int8},
{idx: 0, exp: lt, fn: lt_neg128_int8},
{idx: 0, exp: le, fn: le_neg128_int8},
{idx: 0, exp: gt, fn: gt_neg128_int8},
{idx: 0, exp: ge, fn: ge_neg128_int8},
{idx: 0, exp: eq, fn: eq_neg128_int8},
{idx: 0, exp: ne, fn: ne_neg128_int8},
{idx: 1, exp: lt, fn: lt_neg127_int8},
{idx: 1, exp: le, fn: le_neg127_int8},
{idx: 1, exp: gt, fn: gt_neg127_int8},
{idx: 1, exp: ge, fn: ge_neg127_int8},
{idx: 1, exp: eq, fn: eq_neg127_int8},
{idx: 1, exp: ne, fn: ne_neg127_int8},
{idx: 2, exp: lt, fn: lt_neg1_int8},
{idx: 2, exp: le, fn: le_neg1_int8},
{idx: 2, exp: gt, fn: gt_neg1_int8},
{idx: 2, exp: ge, fn: ge_neg1_int8},
{idx: 2, exp: eq, fn: eq_neg1_int8},
{idx: 2, exp: ne, fn: ne_neg1_int8},
{idx: 3, exp: lt, fn: lt_0_int8},
{idx: 3, exp: le, fn: le_0_int8},
{idx: 3, exp: gt, fn: gt_0_int8},
{idx: 3, exp: ge, fn: ge_0_int8},
{idx: 3, exp: eq, fn: eq_0_int8},
{idx: 3, exp: ne, fn: ne_0_int8},
{idx: 4, exp: lt, fn: lt_1_int8},
{idx: 4, exp: le, fn: le_1_int8},
{idx: 4, exp: gt, fn: gt_1_int8},
{idx: 4, exp: ge, fn: ge_1_int8},
{idx: 4, exp: eq, fn: eq_1_int8},
{idx: 4, exp: ne, fn: ne_1_int8},
{idx: 5, exp: lt, fn: lt_126_int8},
{idx: 5, exp: le, fn: le_126_int8},
{idx: 5, exp: gt, fn: gt_126_int8},
{idx: 5, exp: ge, fn: ge_126_int8},
{idx: 5, exp: eq, fn: eq_126_int8},
{idx: 5, exp: ne, fn: ne_126_int8},
{idx: 6, exp: lt, fn: lt_127_int8},
{idx: 6, exp: le, fn: le_127_int8},
{idx: 6, exp: gt, fn: gt_127_int8},
{idx: 6, exp: ge, fn: ge_127_int8},
{idx: 6, exp: eq, fn: eq_127_int8},
{idx: 6, exp: ne, fn: ne_127_int8},
}
func main() {
......
......@@ -160,12 +160,12 @@ func main() {
fmt.Fprintf(w, "// results show the expected result for the elements left of, equal to and right of the index.\n")
fmt.Fprintf(w, "type result struct{l, e, r bool}\n")
fmt.Fprintf(w, "var (\n")
fmt.Fprintf(w, " _eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " _ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " _lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " _le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " _gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " _ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, " eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, ")\n")
operators := []struct{ op, name string }{
......@@ -207,7 +207,7 @@ func main() {
sig := sigString(r)
for _, op := range operators {
fmt.Fprintf(w, "{idx: %v,", i)
fmt.Fprintf(w, "exp: _%v,", op.name)
fmt.Fprintf(w, "exp: %v,", op.name)
fmt.Fprintf(w, "fn: %v_%v_%v},\n", op.name, sig, typ)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment