Skip to content

Instantly share code, notes, and snippets.

@Sarah-C
Created April 17, 2021 17:19
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 Sarah-C/730c5e6d02aa0894769244e7162d7089 to your computer and use it in GitHub Desktop.
Save Sarah-C/730c5e6d02aa0894769244e7162d7089 to your computer and use it in GitHub Desktop.
using System;
public class C {
int x=5;
public void check() {
if( x > 20) x=6;
}
}
; Core CLR v5.0.421.11614 on amd64
C..ctor()
L0000: mov dword ptr [rcx+8], 5
L0007: ret
C.check()
L0000: cmp dword ptr [rcx+8], 0x14
L0004: jle short L000d
L0006: mov dword ptr [rcx+8], 6
L000d: ret
{
"version": 1,
"target": "JIT ASM",
"mode": "Release",
"branch": "core-x64"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment