type error
Shipley1105 opened this issue · comments
float32x4_t v1 = { 1.0, 0.0, 1.0, 0.0 }, v2 = { 0.0, 1.0, 1.0, 0.0 };
uint32x4_t mask = vcltq_f32(v1, v2); // v1 < v2
float32x4_t ones = vmovq_n_f32(10.0), twos = vmovq_n_f32(20.0); // the conditional branches: if condition is true returns 10.0, else returns 20.0
float32x4_t v3 = vbslq_f32(mask, ones, twos); // will select first if mask 0, second if mask 1
<<<<<<<<<<<<<<<<<<<<<<<<<<<
// should be
// float32x4_t v3 = vbslq_f32(mask, ones, twos); // will select first if mask 1, second if mask 0
// => v3 = { 20.0, 10.0, 20.0, 20.0 }
thanks wanna make a PR?