From 482a1ae9b95a6e9d15daf233422be145f61f4860 Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Thu, 20 Apr 2023 15:59:55 +0300 Subject: [PATCH] Add a test for STORE_DYN_BLK(..., IND(null), ...) --- src/tests/JIT/opt/AssertionPropagation/DynBlkNullAssertions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/JIT/opt/AssertionPropagation/DynBlkNullAssertions.cs b/src/tests/JIT/opt/AssertionPropagation/DynBlkNullAssertions.cs index 22b7c3b94e693..f13bbc2010397 100644 --- a/src/tests/JIT/opt/AssertionPropagation/DynBlkNullAssertions.cs +++ b/src/tests/JIT/opt/AssertionPropagation/DynBlkNullAssertions.cs @@ -29,7 +29,7 @@ private static bool TestCpBlk(ref byte dst, ref byte src, uint size) { Unsafe.CopyBlock(ref dst, ref src, size); - return Unsafe.AreSame(ref dst, ref Unsafe.NullRef()); + return Unsafe.AreSame(ref dst, ref Unsafe.NullRef()) && Unsafe.AreSame(ref src, ref Unsafe.NullRef()); } [MethodImpl(MethodImplOptions.NoInlining)]