aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/cstd.md
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2026-03-11 11:37:19 +0100
committer lemon<lsof@mailbox.org>2026-03-11 11:37:19 +0100
commit1f3ebe69478f245f69cd6f77db946226557085d2 (patch)
treeedb5ec23153d7f769de4ab318847248399a4bdf2 /doc/cstd.md
parent1529b5221389c75371d0f3f181957a77a158a53c (diff)
x86_64/isel: fix edge case with branch on float add result
In `if (x + 1)` the implicit `!= 0` can be omitted for integers, because the x86 `add` instruction sets the zero flag accordingly. But for floats it doesn't, so applying that optimization there was wrong. Luckily it was caught by a nullptr dereference later in `emit::Xjcc()` for the (missing) unordered branch target, instead of miscompiling.
Diffstat (limited to 'doc/cstd.md')
0 files changed, 0 insertions, 0 deletions