From 5eca82a956c38c14dfbebec646f28a59d3eac816 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Wed, 14 Aug 2024 13:38:11 -0400 Subject: [PATCH] line: respect %both needs of immediates (via +kerf) --- hoon/codegen/lib/line.hoon | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hoon/codegen/lib/line.hoon b/hoon/codegen/lib/line.hoon index 89d2b28..45cbea8 100644 --- a/hoon/codegen/lib/line.hoon +++ b/hoon/codegen/lib/line.hoon @@ -1022,12 +1022,9 @@ $(todo [pole todo], tack t.tack) :: %both - %= $ - tack - ?: ?=(?(~ [~ @]) no) - [[~ rite.ne] [~ left.ne] t.tack] - [[`+.u.no rite.ne] [`-.u.no left.ne] t.tack] - == + =^ [y=@uwoo r=@uvre] gen (kerf [%next ne u]) + =/ =pole ?~(no [%poi r] [%imm u.no r]) + $(u y, todo [pole todo], tack t.tack) :: %none $(tack t.tack) ==