From 03da40271ff917a6d036c5684b500e315c0f8515 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 5 Jan 2026 22:17:53 +0100 Subject: rv64: fix invalid float immediates Thanks to Luke Graham for reporting and fixing this issue. --- rv64/isel.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rv64') diff --git a/rv64/isel.c b/rv64/isel.c index 000c112..ca62359 100644 --- a/rv64/isel.c +++ b/rv64/isel.c @@ -31,6 +31,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) c = &fn->con[r0.val]; if (c->type == CAddr && memarg(r, op, i)) break; + if (KBASE(k) == 0) if (c->type == CBits && immarg(r, op, i)) if (-2048 <= c->bits.i && c->bits.i < 2048) break; -- cgit v1.2.3