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