Skip to content

Commit 9971fc5

Browse files
committed
[msan] Handle NEON saturating extract and narrow
This uses the generalized handleVectorReduceIntrinsic (from #125288) to handle NEON saturating extract and narrow (Intrinsic::aarch64_neon_{sqxtn, sqxtun, uqxtn}). Updates the tests from #125140 and #125288
1 parent cbb4e99 commit 9971fc5

File tree

3 files changed

+151
-324
lines changed

3 files changed

+151
-324
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4894,6 +4894,13 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
48944894
break;
48954895
}
48964896

4897+
// Saturating extract narrow
4898+
case Intrinsic::aarch64_neon_sqxtn:
4899+
case Intrinsic::aarch64_neon_sqxtun:
4900+
case Intrinsic::aarch64_neon_uqxtn:
4901+
handleVectorReduceIntrinsic(I);
4902+
break;
4903+
48974904
case Intrinsic::aarch64_neon_st1x2:
48984905
case Intrinsic::aarch64_neon_st1x3:
48994906
case Intrinsic::aarch64_neon_st1x4:

0 commit comments

Comments
 (0)