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