| SKIP: FAILED |
| |
| #include <metal_stdlib> |
| using namespace metal; |
| |
| thread half2 u = half2(1.0h); |
| void f() { |
| uint2 const v = tint_v2f16_to_v2u32(u); |
| } |
| uint2 tint_v2f16_to_v2u32(half2 value) { |
| return select(uint2(4294967295u), select(uint2(0u), uint2(value), (value >= half2(0.0h))), (value <= half2(65504.0h))); |
| } |
| program_source:4:14: error: program scope variable must reside in constant address space |
| thread half2 u = half2(1.0h); |
| ^ |
| program_source:6:15: warning: unused variable 'v' [-Wunused-variable] |
| uint2 const v = tint_v2f16_to_v2u32(u); |
| ^ |
| |