Fix a bug around Vector4.Distance and Sse41.Insert lowering (#81725)
authorTanner Gooding <tagoo@outlook.com>
Tue, 7 Feb 2023 15:56:56 +0000 (07:56 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 15:56:56 +0000 (07:56 -0800)
commit32ea33964de6e6188aa62afcbc4b1f17f1dbf1ff
tree16bac19ff34eaa657ac19f2aac5b07524b5aff56
parent41772ba6d35588527299daae5ac35ebbf1312870
Fix a bug around Vector4.Distance and Sse41.Insert lowering (#81725)

* Adding a regression test for dotnet/runtime#81585

* Fixing a bug around Sse41.Insert lowering

* Ensure that Distance/DistanceSquared are correctly imported

* Account for another case around Sse41.Insert chain folding
src/coreclr/jit/lowerxarch.cpp
src/coreclr/jit/simdashwintrinsic.cpp
src/coreclr/jit/simdashwintrinsiclistarm64.h
src/coreclr/jit/simdashwintrinsiclistxarch.h
src/tests/JIT/Regression/JitBlue/Runtime_81585/Runtime_81585.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_81585/Runtime_81585.csproj [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_81725/Runtime_81725.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_81725/Runtime_81725.csproj [new file with mode: 0644]