[BOLT] Fix instrumentation problem with floating point
authorMaksim Panchenko <maks@fb.com>
Fri, 1 Jul 2022 01:46:47 +0000 (18:46 -0700)
committerMaksim Panchenko <maks@fb.com>
Fri, 1 Jul 2022 22:29:36 +0000 (15:29 -0700)
commit3a47037fcc3cc4407aaee520c684ff0c2c5497d1
treed331b509537216eda7f7a4a559106236eb97dafd
parentfd25a0aa41c0eda517f1e82c5ee9e107cf426fcd
[BOLT] Fix instrumentation problem with floating point

If BOLT instrumentation runtime uses XMM registers, it can interfere
with the user program causing crashes and unexpected behavior. This
happens as the instrumentation code preserves general purpose registers
only.

Build BOLT instrumentation runtime with "-mno-sse".

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D128960
bolt/runtime/CMakeLists.txt
bolt/test/runtime/X86/instrumentation-xmm.c [new file with mode: 0644]