Enable SSE 4.2 unconditionally (#3833)
* Enable SSE 4.2 unconditionally Fuzzing over the weekend found that `i64x2` comparison operators require `pcmpgtq` which is an SSE 4.2 instruction. Along the lines of #3816 this commit unconditionally enables and requires SSE 4.2 for compilation and fuzzing. It will no longer be possible to create a compiler for x86_64 with simd enabled if SSE 4.2 is disabled. * Update comment
This commit is contained in:
@@ -756,8 +756,8 @@ impl<'a> Arbitrary<'a> for CodegenSettings {
|
||||
std:"sse3" => clif:"has_sse3" ratio: 1 in 1,
|
||||
std:"ssse3" => clif:"has_ssse3" ratio: 1 in 1,
|
||||
std:"sse4.1" => clif:"has_sse41" ratio: 1 in 1,
|
||||
std:"sse4.2" => clif:"has_sse42" ratio: 1 in 1,
|
||||
|
||||
std:"sse4.2" => clif:"has_sse42",
|
||||
std:"popcnt" => clif:"has_popcnt",
|
||||
std:"avx" => clif:"has_avx",
|
||||
std:"avx2" => clif:"has_avx2",
|
||||
|
||||
@@ -554,6 +554,10 @@ impl Config {
|
||||
/// this does not enable the [relaxed simd proposal] as that is not
|
||||
/// implemented in Wasmtime at this time.
|
||||
///
|
||||
/// On x86_64 platforms note that enabling this feature requires SSE 4.2 and
|
||||
/// below to be available on the target platform. Compilation will fail if
|
||||
/// the compile target does not include SSE 4.2.
|
||||
///
|
||||
/// This is `true` by default.
|
||||
///
|
||||
/// [proposal]: https://github.com/webassembly/simd
|
||||
|
||||
Reference in New Issue
Block a user