https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124624
Shivam Gupta <shivam98.tkg at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shivam98.tkg at gmail dot com
--- Comment #4 from Shivam Gupta <shivam98.tkg at gmail dot com> ---
Is this issue fixed on trunk, from godbolt - https://godbolt.org/z/3hjTTzb75:
trunk -
.L5:
movl %esi, %ecx
movl $-1, %edx
shrl $16, %ecx
cmovne %edx, %eax
ret
15.1 -
.L6:
or eax, -1
ret
.L5:
mov ecx, esi
shr ecx, 16
je .L4
jmp .L6
...
.L4:
ret