blob: 719dafff06b87904e703f83b2cf6977a2b2a2b2d [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half t = 0.0h;
half4 m() {
t = 1.0h;
return half4(t);
}
void f() {
uint4 v = tint_v4f16_to_v4u32(m());
}
uint4 tint_v4f16_to_v4u32(half4 value) {
return select(uint4(4294967295u), select(uint4(0u), uint4(value), (value >= half4(0.0h))), (value <= half4(65504.0h)));
}
program_source:4:13: error: program scope variable must reside in constant address space
thread half t = 0.0h;
^
program_source:10:13: error: use of undeclared identifier 'tint_v4f16_to_v4u32'
uint4 v = tint_v4f16_to_v4u32(m());
^