From 79874c83bf76a5b3efd3d558933b90d9b53b829e Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 21 Mar 2026 22:20:34 +0100 Subject: IR: add 3rd operand to Instr The motivation is for aarch64 msub/madd instrs, for isel to produce. But it should be useful for other things too. --- src/ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.c') diff --git a/src/ir.c b/src/ir.c index ce36e64..6cdb43d 100644 --- a/src/ir.c +++ b/src/ir.c @@ -484,7 +484,7 @@ insertphi(Block *blk, enum irclass cls) assert(blk->npred > 0); xbgrowz(&refs, blk->npred); vpush(&phitab, refs); - instrtab[new] = mkinstr(Ophi, cls, mkref(RXXX, phitab.n - 1)); + instrtab[new] = mkinstr1(Ophi, cls, {.i = phitab.n - 1}); vpush(&blk->phi, new); return mkref(RTMP, new); } -- cgit v1.2.3