Files
wasmtime/cranelift/filetests/filetests/isa/x86/simd-avx512-conversion-legalize.clif
Andrew Brown 01d34e71b9 Add x86 legalization for fcvt_from_uint.f32x4
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.
2020-06-12 15:06:22 -07:00

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
}