From 0454fa259b016a59c9d68b24492a3c830517a49e Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 29 Apr 2026 13:37:22 +0200 Subject: [PATCH] arm64: fix unordered fp comparisons --- arm64/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm64/emit.c b/arm64/emit.c index c339e41..b9984b6 100644 --- a/arm64/emit.c +++ b/arm64/emit.c @@ -660,7 +660,7 @@ arm64_emitfn(Fn *fn, FILE *out) c = b->jmp.type - Jjf; if (c < 0 || c > NCmp) die("unhandled jump %d", b->jmp.type); - if (b->link == b->s2) { + if (b->link == b->s2 || c >= NCmpI) { t = b->s1; b->s1 = b->s2; b->s2 = t;