[msan] Check for AVX regs using offset
authorPetr Hosek <phosek@google.com>
Thu, 6 Jan 2022 03:24:00 +0000 (19:24 -0800)
committerPetr Hosek <phosek@google.com>
Thu, 6 Jan 2022 03:24:00 +0000 (19:24 -0800)
commit9eeb2c98f4528856c63618e3ef94529fa6f4ff11
treefa2932e132030477302df60f5bccee65715192c3
parent3a1a0d4957ece964a88b9912f4a86f651f026392
[msan] Check for AVX regs using offset

glibc versions < 2.26 use different names for the fields.
However the layout is unchanged, so using the offset should be a
portable way to address this issue across platforms.

Fixes: https://github.com/llvm/llvm-project/issues/53014

Patch By: paulkirth

Differential Revision: https://reviews.llvm.org/D116695
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
compiler-rt/test/msan/Linux/signal_mcontext.cpp
compiler-rt/test/msan/Linux/signal_mcontext2.cpp