blob: e3c29f6db77b7ce877c9308e4dfdceea3d6f1621 [file] [log] [blame]
vector<float16_t, 2> tint_bitcast_to_f16(int src) {
uint v = asuint(src);
float t_low = f16tof32((v & 65535u));
float t_high = f16tof32(((v >> 16u) & 65535u));
float16_t v_1 = float16_t(t_low);
return vector<float16_t, 2>(v_1, float16_t(t_high));
}
[numthreads(1, 1, 1)]
void f() {
int a = 1073757184;
vector<float16_t, 2> b = tint_bitcast_to_f16(a);
}