[msan] Instrument vtest instrinsics
authorVitaly Buka <vitalybuka@google.com>
Sun, 18 Sep 2022 06:44:23 +0000 (23:44 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 21 Sep 2022 23:57:44 +0000 (16:57 -0700)
commitba39a6e14a528a14ce2e10c49893a5a5e0e7a4a4
tree9b374c12aba021c86237beff593f46f6b17e3708
parent2445548469284d17daf09636fac85e0a2378d5cf
[msan] Instrument vtest instrinsics

Instrumentation just ORs shadow of inputs.
I assume some result shadow bits can be reset if we go into specifics of particular checks,
but as-is it is still an improvement against existing default strict instruction handler, when
every set bit of input shadow is  reported as an error.

Reviewed By: kda

Differential Revision: https://reviews.llvm.org/D134123
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/avx-intrinsics-x86.ll
llvm/test/Instrumentation/MemorySanitizer/sse41-intrinsics-x86.ll