Why does GCC use “mov edi, edi” for this unsigned integer to double conversion but not for signed? [duplicate]
This question already has answers here: Are there unsigned equivalents of the x87 FILD and SSE CVTSI2SD instructions? (6 answers) MSVC compiler generates mov ecx, ecx that looks useless [duplicate] (1 answer) Why did GCC generate mov %eax,%eax and what does it mean? (1 answer) Closed 2 years ago. When compile(x86-64 gcc 11.2 with -O2) […]