blob: 39a5e78154498a77517b41e9d901debb7dc9609f [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float t = 0.0f;
float m() {
t = 1.0f;
return float(t);
}
void f() {
uint v = tint_f32_to_u32(m());
}
uint tint_f32_to_u32(float value) {
return select(4294967295u, select(0u, uint(value), (value >= 0.0f)), (value <= 4294967040.0f));
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float t = 0.0f;
^
program_source:10:12: error: use of undeclared identifier 'tint_f32_to_u32'
uint v = tint_f32_to_u32(m());
^