arm64: fix unordered fp comparisons

This commit is contained in:
Quentin Carbonneaux 2026-04-29 13:37:22 +02:00
parent dba8d5a4bf
commit 0454fa259b

View File

@ -660,7 +660,7 @@ arm64_emitfn(Fn *fn, FILE *out)
c = b->jmp.type - Jjf; c = b->jmp.type - Jjf;
if (c < 0 || c > NCmp) if (c < 0 || c > NCmp)
die("unhandled jump %d", b->jmp.type); die("unhandled jump %d", b->jmp.type);
if (b->link == b->s2) { if (b->link == b->s2 || c >= NCmpI) {
t = b->s1; t = b->s1;
b->s1 = b->s2; b->s1 = b->s2;
b->s2 = t; b->s2 = t;