blob: 5b844800fe28732fb8ff98b35aa600638cdd093d [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half2 u = half2(1.0h);
void f() {
int2 const v = tint_v2f16_to_v2i32(u);
}
int2 tint_v2f16_to_v2i32(half2 value) {
return select(int2(2147483647), select(int2((-2147483647 - 1)), int2(value), (value >= half2(-65504.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:14: warning: unused variable 'v' [-Wunused-variable]
int2 const v = tint_v2f16_to_v2i32(u);
^