Skip to content

Instantly share code, notes, and snippets.

@pgavlin
Last active September 14, 2016 03:27
Show Gist options
  • Save pgavlin/0bf88a1228d16fa0069fe74fc295bfe4 to your computer and use it in GitHub Desktop.
Save pgavlin/0bf88a1228d16fa0069fe74fc295bfe4 to your computer and use it in GitHub Desktop.
; Assembly listing for method Program:Test(ref,ref)
; Emitting BLENDED_CODE for generic X86 CPU
; optimized code
; ebp based frame
; fully interruptible
; Final local variable assignments
;
; V00 arg0 [V00,T03] ( 3, 4 ) ref -> ebx
; V01 arg1 [V01,T02] ( 3, 4 ) ref -> edi
; V02 loc0 [V02,T00] ( 5, 15 ) int -> esi
; V03 tmp0 [V03,T01] ( 2, 8 ) int -> eax
G_M50523_IG01:
55 push ebp
8BEC mov ebp, esp
57 push edi
56 push esi
53 push ebx
8BD9 mov ebx, ecx
8BFA mov edi, edx
G_M50523_IG02:
33F6 xor esi, esi
EB13 jmp SHORT G_M50523_IG04
G_M50523_IG03:
3B7704 cmp esi, dword ptr [edi+4]
7320 jae SHORT G_M50523_IG06
8B44B708 mov eax, dword ptr [edi+4*esi+8]
3B7304 cmp esi, dword ptr [ebx+4]
7317 jae SHORT G_M50523_IG06
8944B308 mov dword ptr [ebx+4*esi+8], eax
46 inc esi
G_M50523_IG04:
33C0 xor eax, eax
85C0 test eax, eax
7707 ja SHORT G_M50523_IG05
72E5 jb SHORT G_M50523_IG03
83FE03 cmp esi, 3
72E0 jb SHORT G_M50523_IG03
G_M50523_IG05:
5B pop ebx
5E pop esi
5F pop edi
5D pop ebp
C3 ret
G_M50523_IG06:
E8F004E54C call CORINFO_HELP_RNGCHKFAIL
CC int3
; Total bytes of code 57, prolog size 10 for method Program:Test(ref,ref)
; ============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment