3 #extension GL_EXT_shader_explicit_arithmetic_types: enable
5 int64_t func(int8_t a, int16_t b, int16_t c)
7 return int64_t(a | b + c);
10 int64_t func(int8_t a, int16_t b, int32_t c)
12 return int64_t(a | b - c);
15 int64_t func(int32_t a, int32_t b, int32_t c)
17 return int64_t(a / b + c);
20 int64_t func(float16_t a, float16_t b, float32_t c)
22 return int64_t(a - b * c);
25 int64_t func(float16_t a, int16_t b, float32_t c)
27 return int64_t(a - b * c);
38 int64_t b1 = func(x, y, z);
39 int64_t b2 = func(y, y, z); // tie
40 int64_t b3 = func(y, y, w); // No match
41 int64_t b4 = func(y, z, f16); // No match
42 int64_t b5 = func(y, y, f16);
43 int64_t b7 = func(f16, f16, y);
44 int64_t b8 = func(f16, f16, f64); // No match
45 int64_t b9 = func(f16, x, f16); // tie