Commit 4ce0a624 authored by Jason Ekstrand's avatar Jason Ekstrand

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's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 4e20094d
......@@ -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),
......
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