Addresses #3809: when we are asked to create a Cranelift backend with shared flags that indicate support for SIMD, we should check that the ISA level needed for our SIMD lowerings is present.
12 lines
251 B
Plaintext
12 lines
251 B
Plaintext
test verifier
|
|
set enable_simd=true
|
|
target aarch64
|
|
target x86_64 has_sse3 has_ssse3 has_sse41
|
|
|
|
function %scalar_to_vector() {
|
|
block0:
|
|
v0 = iconst.i32 42
|
|
v1 = scalar_to_vector.f32x4 v0 ; error: arg 0 (v0) has type i32, expected f32
|
|
return
|
|
}
|