diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-02-23 17:06:24 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-02-24 16:19:42 -0800 |
commit | 4ce0a6241da21d84d64ca28db7a5e8630c5f7d40 (patch) | |
tree | 5b91f1bb7a61aee999bb757b8aa2ad9b4aa91b0b /generated_tests | |
parent | 4e20094d643f799a3bebf777100cd7ea1df0e7dc (diff) |
builtin_functions: Add more 64-bit integers
Seriously, 100000000000 is not the only 64-bit integer. We should test
a few more of them.
These new integers trigger a bug in the GLSL IR int64 lowering code.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/builtin_function.py | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/generated_tests/builtin_function.py b/generated_tests/builtin_function.py index 663d9d8b4..a5eafb278 100644 --- a/generated_tests/builtin_function.py +++ b/generated_tests/builtin_function.py @@ -1309,8 +1309,28 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict): [ 0.14, 0.18, -0.56], [ 0.40, -0.77, 1.76]]), # mat3x4 ] - int64s = [np.int64(x) for x in [0, -100000000000, 100000000000]] - uint64s = [np.uint64(x) for x in [0, 10, 100000000000]] + + int64s = [np.int64(x) for x in [ + 0, + 3, + -1192, + 1048576, + 4251475, + 29852643761, + -4398046511104, + -3948976685146, + -135763469567146206]] + uint64s = [np.uint64(x) for x in [ + 0, + 3, + 1192, + 1048576, + 4251475, + 29852643761, + 4398046511104, + 3948976685146, + 135763469567146206, + 11654173250180970009]] int64vecs = [ np.array([-10, -12], dtype=np.int64), |