blob: 1ac25375a6e7798b662a5ce3b0576583afbbf674 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half u = 1.0h;
void f() {
int const v = tint_f16_to_i32(u);
}
int tint_f16_to_i32(half value) {
return select(2147483647, select((-2147483647 - 1), int(value), (value >= -65504.0h)), (value <= 65504.0h));
}
program_source:4:13: error: program scope variable must reside in constant address space
thread half u = 1.0h;
^
program_source:6:13: warning: unused variable 'v' [-Wunused-variable]
int const v = tint_f16_to_i32(u);
^