x64: Lower SIMD requirement to SSE4.1 from SSE4.2 (#6206)
Cranelift only has one instruction SIMD which depends on SSE4.2 so this commit adds a lowering rule for `pcmpgtq` which doesn't use SSE4.2 and enables lowering the baseline requirement for SIMD support from SSE4.2 to SSE4.1. The `has_sse42` setting is no longer enabled by default for Cranelift. Additionally `enable_simd` no longer requires `has_sse42` on x64. Finally the fuzz-generator for Wasmtime codegen settings now enables flipping the `has_sse42` setting instead of unconditionally setting it to `true`. The specific lowering for `pcmpgtq` is copied from LLVM's lowering of this instruction.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
test compile precise-output
|
||||
set enable_simd
|
||||
target x86_64 has_avx
|
||||
target x86_64 sse42 has_avx
|
||||
|
||||
function %i8x16_eq(i8x16, i8x16) -> i8x16 {
|
||||
block0(v0: i8x16, v1: i8x16):
|
||||
|
||||
@@ -2,7 +2,8 @@ test interpret
|
||||
test run
|
||||
set enable_simd
|
||||
target x86_64
|
||||
target x86_64 has_avx
|
||||
target x86_64 sse42
|
||||
target x86_64 sse42 has_avx
|
||||
target aarch64
|
||||
target s390x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user