News for hackers. Stuff that matters.
Re:Unexpected Ways Memory Subsystem Interacts with Branch Pr... by gpderetta on Friday December 29, 2023 @05:27PM (#38810990)
SETcc is indeed what GCC typically uses. You can also play tricks with the carry flag and ADC but I don't think I have ever seen GCC do it.
Re:Unexpected Ways Memory Subsystem Interacts with Branch Pr... by xoranth on Saturday December 30, 2023 @12:04AM (#38812928)
The latest version can [^1], though anecdotally I've seen clang/LLVM being smarter about it.

[^1]: https://c.godbolt.org/z/vP8edfen7