mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
128-bit multiplication
This commit is contained in:
parent
2b849f167f
commit
0f058c8b46
4 changed files with 43 additions and 28 deletions
|
@ -848,6 +848,13 @@ impl<
|
|||
let dst_reg = self.storage_manager.claim_float_reg(&mut self.buf, dst);
|
||||
ASM::mov_freg64_freg64(&mut self.buf, dst_reg, CC::FLOAT_RETURN_REGS[0]);
|
||||
}
|
||||
Layout::I128 | Layout::U128 => {
|
||||
let offset = self.storage_manager.claim_stack_area(dst, 16);
|
||||
|
||||
ASM::mov_base32_reg64(&mut self.buf, offset + 0, CC::GENERAL_RETURN_REGS[0]);
|
||||
ASM::mov_base32_reg64(&mut self.buf, offset + 8, CC::GENERAL_RETURN_REGS[1]);
|
||||
}
|
||||
|
||||
other => {
|
||||
//
|
||||
match self.layout_interner.get(other) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue