This converts an `i32x4` into an `f32x4` with some rounding either by using an AVX512VL/F instruction--VCVTUDQ2PS--or a long sequence of SSE4.1 compatible instructions.
11 lines
217 B
Plaintext
11 lines
217 B
Plaintext
test legalizer
|
|
set enable_simd
|
|
target x86_64 skylake has_avx512f=true
|
|
|
|
function %fcvt_from_uint(i32x4) -> f32x4 {
|
|
block0(v0:i32x4):
|
|
v1 = fcvt_from_uint.f32x4 v0
|
|
; check: v1 = x86_vcvtudq2ps v0
|
|
return v1
|
|
}
|