adding missing instruction selection

This commit is contained in:
Jakub Doka 2024-11-11 22:36:20 +01:00
parent ad7fb5d0fc
commit f5f9060803
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -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()),