-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gh-1307] Fix remaining JIT ASM issues
- Loading branch information
Showing
20 changed files
with
399 additions
and
750 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
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
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
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
76 changes: 20 additions & 56 deletions
76
source/Tests/Decompilation/TestCode/JitAsm/ArrayElement.cs
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 |
---|---|---|
@@ -1,57 +1,21 @@ | ||
static class C { | ||
static int M(int[] x) { | ||
return x[0]; | ||
} | ||
} | ||
|
||
/* asm | ||
; Core CLR <IGNORE> on x64 | ||
C.M(Int32[]) | ||
L0000: sub rsp, 0x28 | ||
L0004: cmp dword ptr [rcx+8], 0 | ||
L0008: jbe short L0012 | ||
L000a: mov eax, [rcx+0x10] | ||
L000d: add rsp, 0x28 | ||
L0011: ret | ||
L0012: call 0x<IGNORE> | ||
L0017: int3 | ||
Microsoft.CodeAnalysis.EmbeddedAttribute..ctor() | ||
L0000: ret | ||
System.Runtime.CompilerServices.NullableAttribute..ctor(Byte) | ||
L0000: push rdi | ||
L0001: push rsi | ||
L0002: sub rsp, 0x28 | ||
L0006: mov rsi, rcx | ||
L0009: mov edi, edx | ||
L000b: mov rcx, 0x<IGNORE> | ||
L0015: mov edx, 1 | ||
L001a: call 0x<IGNORE> | ||
L001f: mov [rax+0x10], dil | ||
L0023: lea rcx, [rsi+8] | ||
L0027: mov rdx, rax | ||
L002a: call 0x<IGNORE> | ||
L002f: nop | ||
L0030: add rsp, 0x28 | ||
L0034: pop rsi | ||
L0035: pop rdi | ||
L0036: ret | ||
System.Runtime.CompilerServices.NullableAttribute..ctor(Byte[]) | ||
L0000: lea rcx, [rcx+8] | ||
L0004: call 0x<IGNORE> | ||
L0009: nop | ||
L000a: ret | ||
System.Runtime.CompilerServices.NullableContextAttribute..ctor(Byte) | ||
L0000: mov [rcx+8], dl | ||
L0003: ret | ||
System.Runtime.CompilerServices.RefSafetyRulesAttribute..ctor(Int32) | ||
L0000: mov [rcx+8], edx | ||
L0003: ret | ||
static class C { | ||
static int M(int[] x) { | ||
return x[0]; | ||
} | ||
} | ||
|
||
/* asm | ||
; Core CLR <IGNORE> on x64 | ||
C.M(Int32[]) | ||
L0000: sub rsp, 0x28 | ||
L0004: cmp dword ptr [rcx+8], 0 | ||
L0008: jbe short L0012 | ||
L000a: mov eax, [rcx+0x10] | ||
L000d: add rsp, 0x28 | ||
L0011: ret | ||
L0012: call 0x<IGNORE> | ||
L0017: int3 | ||
*/ |
Oops, something went wrong.