@deeprobin feel free to file an issue. Related one is #13816 (you can use PR that closed it as a foundation for your PR if you want to contribute 🙂)
Originally posted by @EgorBo in #69884 (comment)
See https://godbolt.org/z/T8eqE9chv
LLVM
shr sil, 4
shl dil, 4
or dil, sil
movzx eax, dil
ret
.NET JIT
movzx rax, dil
shl eax, 4
movzx rdi, sil
sar edi, 4
or eax, edi
ret
Originally posted by @EgorBo in #69884 (comment)
See https://godbolt.org/z/T8eqE9chv
LLVM
.NET JIT