Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
18b5fe6
Fix AsyncVoidMethodBuilder race condition around SynchronizationConte…
github-actions[bot] Mar 13, 2024
f09cd44
Always keep global symbols on ApplePlatforms (#99650)
github-actions[bot] Mar 13, 2024
c0a2606
Delete Decrypt_Pkcs1_ErrorsForInvalidPadding
github-actions[bot] Mar 13, 2024
c412efb
Rename MSBuild property MicrosoftNativeQuicMsQuicVersion -> Microsoft…
carlossanlop Mar 14, 2024
e373424
Fixing SignedXml.CheckSignature for enveloped signature with `#xpoint…
bartonjs Mar 14, 2024
50c3c86
[release/8.0-staging] disable optimizations for PopCount (#99832)
github-actions[bot] Mar 15, 2024
ff80834
[release/8.0-staging] Handle NativeOverlapped* coming from both the W…
github-actions[bot] Mar 16, 2024
cf1182c
Fix exporting certificate keys on macOS 14.4.
github-actions[bot] Mar 19, 2024
c27b203
[release/8.0] Upgrade zlib to 1.3.1 (#99473)
carlossanlop Mar 20, 2024
250354b
Fix failing CertificateValidationRemoteServer.ConnectWithRevocation_W…
rzikm Mar 20, 2024
afb3fca
[mono] Stop exporting ICU symbols from Mono (#99449)
matouskozak Mar 20, 2024
99c7022
[release/8.0-staging] Fix AV in HttpTelemetry.WriteEvent (#99607)
github-actions[bot] Mar 21, 2024
155a4ab
Merge branch 'release/8.0-staging' into merge/release/8.0-to-release/…
carlossanlop Mar 25, 2024
b7f0477
[Http/2] Fix handling of effectively empty DATA frame (#99502) (#99677)
ManickaP Mar 26, 2024
3f774aa
[release/8.0-staging] [HttpStress] [SslStress] Workaround image bug i…
github-actions[bot] Mar 27, 2024
ab416e9
Support building against clang 18 (#100258)
omajid Mar 27, 2024
f36dd88
[release/8.0][browser] WebSocket works differently depending on if we…
ilonatommy Mar 28, 2024
ba9df1e
[release/8.0-staging] Call the Copy Constructor for stack arguments i…
AaronRobinsonMSFT Mar 30, 2024
3ea18f2
[release/8.0] Don't unset ALPN list pointer during ALPN selection cal…
github-actions[bot] Apr 2, 2024
9de64a2
Backport of #99843 (#99844)
thaystg Apr 2, 2024
7d45915
[release/8.0-staging] Ensure that Sse3.MoveAndDuplicate correctly tra…
tannergooding Apr 4, 2024
7ae2d00
Fix allocation of empty array in the frozen heap for collectible type…
jkotas Apr 4, 2024
479defb
Use clang --version to get Apple toolset version (#100199)
github-actions[bot] Apr 4, 2024
d49f6cf
Azure Linux 3.0 deps package (#100684)
github-actions[bot] Apr 5, 2024
2b94204
Fix Http2 deadlock (#100086)
github-actions[bot] Apr 9, 2024
0de7023
[release/8.0-staging] Update CI builds to not use VS Previews (#100622)
github-actions[bot] Apr 10, 2024
4be29ad
Update dependencies from https://github.com/dotnet/hotreload-utils bu…
dotnet-maestro[bot] Apr 12, 2024
cca20d0
[release/8.0-staging] Update dependencies from dotnet/runtime-assets …
dotnet-maestro[bot] Apr 12, 2024
4814719
Merge pull request #99585 from dotnet-maestro-bot/merge/release/8.0-t…
ericstj Apr 12, 2024
f37eb48
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Apr 12, 2024
0a26d20
Update dependencies from https://github.com/dotnet/xharness build 202…
dotnet-maestro[bot] Apr 12, 2024
24e52a0
[release/8.0-staging] Update dependencies from dotnet/source-build-re…
dotnet-maestro[bot] Apr 12, 2024
b1b775e
[release/8.0-staging] Update dependencies from dotnet/source-build-ex…
dotnet-maestro[bot] Apr 12, 2024
be4864f
Update dependencies from https://github.com/dotnet/runtime-assets bui…
dotnet-maestro[bot] Apr 12, 2024
78cde87
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Apr 12, 2024
9b82dcc
Fix native leak in CryptoNative_GetX509nameInfo
github-actions[bot] Apr 12, 2024
7fa8815
[release/8.0-staging] Update dependencies from dotnet/emsdk (#99696)
dotnet-maestro[bot] Apr 12, 2024
f9feb68
Try to find seqpoints directly from jitinfo if it's not find on get_d…
github-actions[bot] Apr 13, 2024
af764fd
[release/8.0][browser] fix emscripten out/err overrides (#100818)
pavelsavara Apr 15, 2024
cd27afe
[mono][eventpipe] Fix firing dynamic method wrappers crash (#99712)
github-actions[bot] Apr 15, 2024
f0f42cc
Update Alpine versions for `release/8.0-staging` (#99849)
richlander Apr 15, 2024
6f29267
[release/8.0-staging] Guard against -1 Returned from sysconf for the …
github-actions[bot] Apr 15, 2024
a494d22
[Release/8.0] Remove preventing EH at shutdown (#100836)
janvorli Apr 15, 2024
3c5a0af
Add workload metadata (#100649)
joeloff Apr 15, 2024
2d7642d
System.Diagnostics.DiagnosticSource (#99583)
carlossanlop Apr 15, 2024
88be910
Always zero-init if object contains pointers (#100265) (#100426)
VSadov Apr 15, 2024
aa7c7ff
[release/8.0-staging] JIT: Fixed incorrect reversed condition for GT …
github-actions[bot] Apr 15, 2024
befe7ad
Merge branch 'release/8.0' into release/8.0-staging
directhex Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[release/8.0-staging] Ensure that Sse3.MoveAndDuplicate correctly tra…
…cks supporting SIMD scalar loads (#100417)

* Ensure that Sse3.MoveAndDuplicate correctly tracks supporting SIMD scalar loads (#97783)

* Add a regression test for #100404

* Fix the regression test to not be called Main
  • Loading branch information
tannergooding authored Apr 4, 2024
commit 7d45915a7e7ba7b830d90998eca4cd064b6626b7
37 changes: 28 additions & 9 deletions src/coreclr/jit/lowerxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7652,26 +7652,47 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* parentNode, GenTre
}

case NI_SSE2_ConvertToVector128Double:
case NI_SSE3_MoveAndDuplicate:
case NI_AVX_ConvertToVector256Double:
case NI_AVX512F_ConvertToVector512Double:
case NI_AVX512F_VL_ConvertToVector128Double:
case NI_AVX512F_VL_ConvertToVector256Double:
{
assert(!supportsSIMDScalarLoads);

// Most instructions under the non-VEX encoding require aligned operands.
// Those used for Sse2.ConvertToVector128Double (CVTDQ2PD and CVTPS2PD)
// and Sse3.MoveAndDuplicate (MOVDDUP) are exceptions and don't fail for
// unaligned inputs as they read mem64 (half the vector width) instead
// are exceptions and don't fail for unaligned inputs as they read half
// the vector width instead

supportsAlignedSIMDLoads = !comp->opts.MinOpts();
supportsUnalignedSIMDLoads = true;

const unsigned expectedSize = genTypeSize(parentNode->TypeGet()) / 2;
const unsigned operandSize = genTypeSize(childNode->TypeGet());

// For broadcasts we can only optimize constants and memory operands
const bool broadcastIsContainable = childNode->OperIsConst() || childNode->isMemoryOp();
supportsGeneralLoads =
broadcastIsContainable && supportsUnalignedSIMDLoads && (operandSize >= expectedSize);
if (childNode->OperIsConst() || childNode->isMemoryOp())
{
// For broadcasts we can only optimize constants and memory operands
// since we're going from a smaller base type to a larger base type
supportsGeneralLoads = supportsUnalignedSIMDLoads && (operandSize >= expectedSize);
}
break;
}

case NI_SSE3_MoveAndDuplicate:
{
// Most instructions under the non-VEX encoding require aligned operands.
// Those used for Sse3.MoveAndDuplicate (MOVDDUP) are exceptions and don't
// fail for unaligned inputs as they read half the vector width instead

supportsAlignedSIMDLoads = !comp->opts.MinOpts();
supportsUnalignedSIMDLoads = true;

const unsigned expectedSize = genTypeSize(parentNode->TypeGet()) / 2;
const unsigned operandSize = genTypeSize(childNode->TypeGet());

supportsGeneralLoads = supportsUnalignedSIMDLoads && (operandSize >= expectedSize);
supportsSIMDScalarLoads = true;
break;
}

Expand All @@ -7697,8 +7718,6 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* parentNode, GenTre
break;
}
}

assert(supportsSIMDScalarLoads == false);
break;
}

Expand Down
31 changes: 31 additions & 0 deletions src/tests/JIT/Regression/JitBlue/Runtime_100404/Runtime_100404.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using Xunit;

public static class Runtime_100404
{
[Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void TestMultiplyVector128DoubleByConstant()
{
Vector128<double> result = Map(Vector128<double>.One, new FloatPoint(2.0, 3.0));
Assert.Equal(2.0, result[0]);
Assert.Equal(2.0, result[1]);
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static Vector128<double> Map(Vector128<double> m0, FloatPoint point)
{
return m0 * Vector128.Create(point.X);
}

private struct FloatPoint(double x, double y)
{
public double X = x;
public double Y = y;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>