From f5f90608032aca4d5783524ee26f969214ebcccf Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Mon, 11 Nov 2024 22:36:20 +0100 Subject: [PATCH] adding missing instruction selection --- lang/src/son/hbvm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/src/son/hbvm.rs b/lang/src/son/hbvm.rs index 5ab76e1..e263ada 100644 --- a/lang/src/son/hbvm.rs +++ b/lang/src/son/hbvm.rs @@ -567,6 +567,7 @@ impl TokenKind { let src_idx = src.simple_size().unwrap().ilog2() as usize - 2; Some(match self { Self::Sub => instrs::neg, + Self::Not => instrs::not, Self::Float if dst.is_float() && src.is_integer() => { debug_assert_matches!( (dst.simple_size(), src.simple_size()),