[msan] Fix bugs when instrument x86.avx512*_cvt* intrinsics.
authorWang, Pengfei <pengfei.wang@intel.com>
Fri, 27 Nov 2020 08:02:09 +0000 (16:02 +0800)
committerWang, Pengfei <pengfei.wang@intel.com>
Fri, 27 Nov 2020 08:33:14 +0000 (16:33 +0800)
commit8dcf8d1da5630d1beecafe6cb1247df3f6a47022
treecadb6f72f821b1922bac6845c577b8fbb45000bf
parent5dd5a083630c797c958b02acd381b9de2bf02c86
[msan] Fix bugs when instrument x86.avx512*_cvt* intrinsics.

Scalar intrinsics x86.avx512*_cvt* have an extra rounding mode operand.
We can directly ignore it to reuse the SSE/AVX math.
This fix the bug https://bugs.llvm.org/show_bug.cgi?id=48298.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D92206
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/vector_cvt.ll