Skip to content

Commit 327306f

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

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
@@ -4749,6 +4749,13 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
47494749
setOrigin(&I, getCleanOrigin());
47504750
break;
47514751

4752+
// Saturating extract narrow
4753+
case Intrinsic::aarch64_neon_sqxtn:
4754+
case Intrinsic::aarch64_neon_sqxtun:
4755+
case Intrinsic::aarch64_neon_uqxtn:
4756+
handleVectorReduceIntrinsic(I);
4757+
break;
4758+
47524759
case Intrinsic::aarch64_neon_st1x2:
47534760
case Intrinsic::aarch64_neon_st1x3:
47544761
case Intrinsic::aarch64_neon_st1x4:

0 commit comments

Comments
 (0)