blob: 9a986874735f85624b1f26453279198f7563a3b2 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float2 u = float2(1.0f);
void f() {
int2 const v = tint_v2f32_to_v2i32(u);
}
int2 tint_v2f32_to_v2i32(float2 value) {
return select(int2(2147483647), select(int2((-2147483647 - 1)), int2(value), (value >= float2(-2147483648.0f))), (value <= float2(2147483520.0f)));
}
program_source:4:15: error: program scope variable must reside in constant address space
thread float2 u = float2(1.0f);
^
program_source:6:14: warning: unused variable 'v' [-Wunused-variable]
int2 const v = tint_v2f32_to_v2i32(u);
^