<feed xmlns='http://www.w3.org/2005/Atom'>
<title>antcc/test/12-flt.c, branch trunk</title>
<subtitle>A little C compiler</subtitle>
<id>https://git.lemon.rip/antcc/atom?h=trunk</id>
<link rel='self' href='https://git.lemon.rip/antcc/atom?h=trunk'/>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/'/>
<updated>2026-03-11T10:37:19+00:00</updated>
<entry>
<title>x86_64/isel: fix edge case with branch on float add result</title>
<updated>2026-03-11T10:37:19+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-11T10:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=1f3ebe69478f245f69cd6f77db946226557085d2'/>
<id>urn:sha1:1f3ebe69478f245f69cd6f77db946226557085d2</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>test/12-flt: add some weird float cmp edgecases</title>
<updated>2025-12-07T11:34:27+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2025-12-07T11:34:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=bfc6b66078ab3ec543b8355ad22df1c423bf9a8c'/>
<id>urn:sha1:bfc6b66078ab3ec543b8355ad22df1c423bf9a8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test 12-flt</title>
<updated>2025-12-05T18:12:30+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2025-12-05T18:12:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=2054983775165f3ae50b241aae71ccb4969eade4'/>
<id>urn:sha1:2054983775165f3ae50b241aae71ccb4969eade4</id>
<content type='text'>
</content>
</entry>
</feed>
