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] JIT: Fixed incorrect reversed condition for GT (#…
…100372)

* Fixed incorrect reversed condition for GT

* Added test case

* Remove comment

* Use JitStressModeNames

* Cleaned up test

* Update Runtime_92201.csproj

---------

Co-authored-by: TIHan <[email protected]>
  • Loading branch information
github-actions[bot] and TIHan authored Apr 15, 2024
commit aa7c7ff6cf1d4e8f4b5dd750ded601f379e1c9b2
2 changes: 1 addition & 1 deletion src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8635,7 +8635,7 @@ struct GenCondition
NONE, NONE, SGE, SGT, SLT, SLE, NS, S,
NE, EQ, UGE, UGT, ULT, ULE, NC, C,
FNEU, FEQU, FGEU, FGTU, FLTU, FLEU, NO, O,
FNE, FEQ, FGE, FGT, FLT, FGT, NP, P
FNE, FEQ, FGE, FGT, FLT, FLE, NP, P
};
// clang-format on

Expand Down
174 changes: 174 additions & 0 deletions src/tests/JIT/Regression/JitBlue/Runtime_92201/Runtime_92201.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
// 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.InteropServices;
using System.Runtime.Intrinsics;
using Xunit;

namespace JIT.HardwareIntrinsics.General._Vector128
{
public static partial class Program
{
[Fact]
public static void Test()
{
var test = new VectorBooleanBinaryOpTest__LessThanOrEqualAnySingle();

// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();

if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}

public sealed unsafe class VectorBooleanBinaryOpTest__LessThanOrEqualAnySingle
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;

private GCHandle inHandle1;
private GCHandle inHandle2;

private ulong alignment;

public DataTable(Single[] inArray1, Single[] inArray2, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Single>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Single>();
if (!int.IsPow2(alignment) || (alignment > 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2)
{
throw new ArgumentException("Invalid value of alignment");
}

this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];

this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);

this.alignment = (ulong)alignment;

Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Single, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Single, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}

public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);

public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
}

private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}

private static readonly int LargestVectorSize = 16;

private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Single>>() / sizeof(Single);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Single>>() / sizeof(Single);

private static Single[] _data1 = new Single[Op1ElementCount];
private static Single[] _data2 = new Single[Op2ElementCount];

private DataTable _dataTable;

public VectorBooleanBinaryOpTest__LessThanOrEqualAnySingle()
{
Succeeded = true;

_data1[0] = 0.168625f;
_data1[1] = 0.5899811f;
_data1[2] = 0.8042229f;
_data1[3] = 0.8173325f;

_data2[0] = 0.059660614f;
_data2[1] = 0.13952714f;
_data2[2] = 0.23523656f;
_data2[3] = 0.48773053f;

_dataTable = new DataTable(_data1, _data2, LargestVectorSize);
}

public bool Succeeded { get; set; }

[MethodImpl(MethodImplOptions.NoInlining)]
public bool LessThanOrEqualAnyProblem()
{
return Vector128.LessThanOrEqualAny(
Unsafe.Read<Vector128<Single>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Single>>(_dataTable.inArray2Ptr)
);
}

[MethodImpl(MethodImplOptions.NoInlining)]
public void* GetPtr1()
{
return _dataTable.inArray1Ptr;
}

[MethodImpl(MethodImplOptions.NoInlining)]
public void* GetPtr2()
{
return _dataTable.inArray2Ptr;
}

[MethodImpl(MethodImplOptions.NoInlining)]
public void CheckResult(bool result)
{
ValidateResult(GetPtr1(), GetPtr2(), result);
}

public void RunBasicScenario_UnsafeRead()
{
var result = Vector128.LessThanOrEqualAny(
Unsafe.Read<Vector128<Single>>(GetPtr1()),
Unsafe.Read<Vector128<Single>>(GetPtr2())
);

CheckResult(result);
}

[MethodImpl(MethodImplOptions.NoInlining)]
private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "")
{
Single[] inArray1 = new Single[Op1ElementCount];
Single[] inArray2 = new Single[Op2ElementCount];

Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Single>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Single>>());

ValidateResult(inArray1, inArray2, result, method);
}

private void ValidateResult(Single[] left, Single[] right, bool result, [CallerMemberName] string method = "")
{
bool succeeded = true;

var expectedResult = false;

for (var i = 0; i < Op1ElementCount; i++)
{
expectedResult |= (left[i] <= right[i]);
}

succeeded = (expectedResult == result);

if (!succeeded)
{
Succeeded = false;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />

<CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="0" />
<CLRTestEnvironmentVariable Include="DOTNET_EnableHWIntrinsic" Value="0" />
<CLRTestEnvironmentVariable Include="DOTNET_JitStressModeNames" Value="STRESS_BB_PROFILE STRESS_REVERSE_FLAG" />
</ItemGroup>
</Project>