[Bug c/126753] GCC emitting useless AND instruction when setting a bool from processor flags

contact at ivanchev dot net via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126753

--- Comment #1 from Mihail Ivanchev <contact at ivanchev dot net> ---
Here is another sample showing a signed overflow through the OVERFLOW flag:

https://godbolt.org/z/73jW7q71c

P.S.:
I just noticed clang even emits a single ADD here.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.