3 ms·
gcc can optimize generic code for a carry check. To be fair both clang and msvc fails to optimize this specific case. https://godbolt.org/z/6WXfnL https://godb
by leni536 8y ago
gcc can optimize generic code for a carry check. To be fair both clang and msvc fails to optimize this specific case.
https://godbolt.org/z/6WXfnL https://godbolt.org/z/6WXfnL
Edit: OK, I have much worse time generating "adc" instructions, and only gcc sees the opportunity to emit "setc" where appropriate. I see the issue now.
- giovannibajo1 8y agoCorrect, gcc can generate "setc" but not "adc", AFAIK.