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:
Alex Crichton
2022-02-22 13:23:51 -06:00
committed by GitHub
parent 43d31c5bf7
commit 709f7e0c8a
4 changed files with 14 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ fn define_settings(shared: &SettingGroup) -> SettingGroup {
"has_sse42",
"Has support for SSE4.2.",
"SSE4.2: CPUID.01H:ECX.SSE4_2[bit 20]",
false,
true,
);
let has_avx = settings.add_bool(
"has_avx",