-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop in genAddrMode (#106767)
Co-authored-by: EgorBo <egorbo@gmail.com>
- Loading branch information
1 parent
fe7898a
commit f34e9ac
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/tests/JIT/Regression/JitBlue/Runtime_106607/Runtime_106607.il
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
.assembly extern System.Runtime { } | ||
.assembly extern System.Console { } | ||
.assembly extern xunit.core { } | ||
.assembly Runtime_106607 { } | ||
|
||
.class Runtime_106607 extends [System.Runtime]System.Object | ||
{ | ||
.method public static int32 Main() nooptimization | ||
{ | ||
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( | ||
01 00 00 00 | ||
) | ||
.entrypoint | ||
.maxstack 8 | ||
.locals init ([0] int32 num) | ||
|
||
ldc.i4 42 | ||
stloc.0 | ||
ldloc.0 | ||
ldc.i4 1620763441 | ||
ldc.i4 1453536392 | ||
add | ||
add | ||
ldloc.0 | ||
ldloc.0 | ||
sub | ||
ldc.i4 152872638 | ||
ldc.i4.s 31 | ||
and | ||
shl | ||
add | ||
call void [System.Console]System.Console::WriteLine(int32) | ||
|
||
ldc.i4 100 | ||
ret | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/tests/JIT/Regression/JitBlue/Runtime_106607/Runtime_106607.ilproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.IL"> | ||
<PropertyGroup> | ||
<DebugType>None</DebugType> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildProjectName).il" /> | ||
</ItemGroup> | ||
</Project> |