Mono DISABLE_SIMD define still emits OP codes depending on SIMD support. (#33717)
authorJohan Lorensson <lateralusx.github@gmail.com>
Thu, 19 Mar 2020 03:31:29 +0000 (04:31 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Mar 2020 03:31:29 +0000 (23:31 -0400)
commitd2f7b6b0d46a45be29ebafca0584142219ffe495
tree3270d3caaab8619c73dedf64bf7ffa4a9cccc386
parent8203dfb926953a22682d51dbe43a83d87b6b2d4b
Mono DISABLE_SIMD define still emits OP codes depending on SIMD support. (#33717)

Fix makes sure runtime checks also report that SIMD has been disabled.
Returning FALSE from is_simd_supported will turn of MONO_OPT_SIMD and
disable all SSE/AVX cpu features will prevent code checking cpu
capabilities to emit SIMD instructions.
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini.c