decimal division in dev backend

This commit is contained in:
Folkert 2024-01-02 19:53:13 +01:00
parent 4bcd195b92
commit 6c521555ea
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 11 additions and 2 deletions

View file

@ -1652,6 +1652,15 @@ impl<
let src2_reg = self.storage_manager.load_to_float_reg(&mut self.buf, src2);
ASM::div_freg32_freg32_freg32(&mut self.buf, dst_reg, src1_reg, src2_reg);
}
LayoutRepr::Builtin(Builtin::Decimal) => {
self.build_fn_call(
&dst,
bitcode::DEC_DIV.to_string(),
&[*src1, *src2],
&[*layout, *layout],
&layout,
);
}
x => todo!("NumDiv: layout, {:?}", x),
}
}