- Notifications
You must be signed in to change notification settings - Fork5.1k
Closed
Labels
Milestone
Description
staticboolTest(intx)=>(x&1)==0;
Just a good first issue for anyone interested in contributing to CLR JIT.
Current codegen:
testcl,1setealmovzxrax,alret
Expected codegen:
moveax,ecxandeax,1ret
I noticed it when I was trying to implement a faster IsNegative for floats:
staticboolIsNegative(doublex)=>(Sse2.MoveMask(Vector128.CreateScalarUnsafe(x))&1)!=0;