Closed
Description
bool Foo(ulong x) => x <= uint.MaxValue; // same for >
Proposed diff for RyuJIT (what it currently emits vs expected)
; Method T:Foo(ulong):bool:this
- mov eax, 0xFFFFFFFF
- cmp rdx, rax
- setbe al
+ shr rdi, 32
+ sete al
movzx rax, al
ret
grep.app: https://grep.app/search?q=%28%3C%3D%7C%3E%29%20uint.MaxValue®exp=true
category:implementation
theme:expression-opts
skill-level:beginner
cost:small
impact:small