Looks like after optimization a few instructions left dangling.
[MethodImpl(MethodImplOptions.NoInlining)]
public static uint Test(uint v)
{
return v % 8;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static uint Test2(uint v)
{
return v & 7;
}
;Test
G_M65206_IG02:
8BC1 mov eax, ecx
33D2 xor rdx, rdx
8BC1 mov eax, ecx
83E007 and eax, 7
G_M65206_IG03:
C3 ret
;Test2
G_M65206_IG02:
8BC1 mov eax, ecx
83E007 and eax, 7
G_M65206_IG03:
C3 ret
Looks like after optimization a few instructions left dangling.