You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We've already used SSE4.x features in floating-point conversions and SIMD implementations. However, some fairly old amd64 CPUs do not have support for these features.
ps I would like to put this limitation only on SIMD instructions, so I will identity where SSE4.1 features are used in non-SIMD instructions (one place I can think of is floating conversions.
mathetake
changed the title
Compiler(amd64): raise error on SSE4 unsupported CPUs when needed
Compiler(amd64): return false on SSE4 unsupported CPUs from platform.CompilerSupported
Feb 13, 2023
Is your feature request related to a problem? Please describe.
We've already used SSE4.x features in floating-point conversions and SIMD implementations. However, some fairly old amd64 CPUs do not have support for these features.
Practically speaking, SSE4.1 features was introduced 15-years ago, and actually, the SIMD proposal has been merged with the baseline being SSE4 on Intel CPUs(WebAssembly/simd#201 (comment)). It seems really hard (maybe impossible) to implement without the feature (bytecodealliance/wasmtime#3809, bytecodealliance/wasm-micro-runtime#1022, wasmerio/wasmer#2775).
It's nice if we could have support for these CPUs, but given that almost all amd64 CPUs have SSE4, that's not our priority and revisit what we can do.
Describe the solution you'd like
Get the available features by
CPUID
instruction, and raise a compilation error if the features are necessary while not available in the hardware.Describe alternatives you've considered
N/A
Additional context
Go has introduced
GOAMD64
flag as of 1.18, and we could leverage the flag and check if the flag has >=v2.The text was updated successfully, but these errors were encountered: