diff --git a/src/back/spv/instructions.rs b/src/back/spv/instructions.rs index b763f7c549..53bdcd314a 100644 --- a/src/back/spv/instructions.rs +++ b/src/back/spv/instructions.rs @@ -696,6 +696,15 @@ pub(super) fn instruction_matrix_times_matrix( // Bit Instructions // +pub(super) fn instruction_bitwise_and( + result_type_id: Word, + id: Word, + operand_1: Word, + operand_2: Word, +) -> Instruction { + instruction_binary(Op::BitwiseAnd, result_type_id, id, operand_1, operand_2) +} + // // Relational and Logical Instructions // diff --git a/src/back/spv/writer.rs b/src/back/spv/writer.rs index 96062ac01f..5621d13282 100644 --- a/src/back/spv/writer.rs +++ b/src/back/spv/writer.rs @@ -1214,6 +1214,15 @@ impl Writer { }, _ => unreachable!(), }, + crate::BinaryOperator::And => ( + super::instructions::instruction_bitwise_and( + left_result_type_id, + id, + left_id, + right_id, + ), + left_lookup_ty, + ), _ => unimplemented!("{:?}", op), };