diff options
| author | 2026-03-11 11:37:19 +0100 | |
|---|---|---|
| committer | 2026-03-11 11:37:19 +0100 | |
| commit | 1f3ebe69478f245f69cd6f77db946226557085d2 (patch) | |
| tree | edb5ec23153d7f769de4ab318847248399a4bdf2 /test/external/c-testsuite/runners/single-exec/c2go | |
| parent | 1529b5221389c75371d0f3f181957a77a158a53c (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 'test/external/c-testsuite/runners/single-exec/c2go')
0 files changed, 0 insertions, 0 deletions