Skip to content

Instantly share code, notes, and snippets.

@pgavlin
Created September 14, 2016 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgavlin/323ff73e061ea4aa70ed7a1af43c1c97 to your computer and use it in GitHub Desktop.
Save pgavlin/323ff73e061ea4aa70ed7a1af43c1c97 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,T02] ( 4, 7 ) ref -> ecx
; V01 arg1 [V01,T03] ( 4, 7 ) ref -> edx
; V02 loc0 [V02,T00] ( 8, 29 ) int -> eax
; V03 tmp0 [V03,T01] ( 2, 16 ) int -> ebx
; V04 cse0 [V04,T04] ( 2, 5 ) int -> esi
; V05 cse1 [V05,T05] ( 2, 5 ) int -> edi
;
; Lcl frame size = 0
G_M50523_IG01:
55 push ebp
8BEC mov ebp, esp
57 push edi
56 push esi
53 push ebx
G_M50523_IG02:
33C0 xor eax, eax
8B7204 mov esi, dword ptr [edx+4]
8B7904 mov edi, dword ptr [ecx+4]
G_M50523_IG03:
3BC6 cmp eax, esi
731F jae SHORT G_M50523_IG05
8B5C8208 mov ebx, dword ptr [edx+4*eax+8]
3BC7 cmp eax, edi
7317 jae SHORT G_M50523_IG05
895C8108 mov dword ptr [ecx+4*eax+8], ebx
40 inc eax
33DB xor ebx, ebx
85DB test ebx, ebx
7707 ja SHORT G_M50523_IG04
72E7 jb SHORT G_M50523_IG03
83F803 cmp eax, 3
72E2 jb SHORT G_M50523_IG03
G_M50523_IG04:
5B pop ebx
5E pop esi
5F pop edi
5D pop ebp
C3 ret
G_M50523_IG05:
E8F2045E4E call CORINFO_HELP_RNGCHKFAIL
CC int3
; Total bytes of code 55, prolog size 6 for method Program:Test(ref,ref)
; ============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment