Add support for more integer types to NumAdd

This commit is contained in:
Christoph Rüßler 2022-08-01 20:42:15 +02:00
parent fa14146054
commit 8cd63290f9
No known key found for this signature in database
GPG key ID: 81E62DC325A143CB
2 changed files with 64 additions and 1 deletions

View file

@ -693,7 +693,14 @@ impl<
fn build_num_add(&mut self, dst: &Symbol, src1: &Symbol, src2: &Symbol, layout: &Layout<'a>) {
match layout {
Layout::Builtin(Builtin::Int(IntWidth::I64 | IntWidth::U64)) => {
Layout::Builtin(Builtin::Int(
IntWidth::I64
| IntWidth::U64
| IntWidth::I32
| IntWidth::U32
| IntWidth::I8
| IntWidth::U8,
)) => {
let dst_reg = self.storage_manager.claim_general_reg(&mut self.buf, dst);
let src1_reg = self
.storage_manager