mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
crude attempt at mov_reg_reg
This commit is contained in:
parent
aaf89783f9
commit
6cbe15bf9d
1 changed files with 9 additions and 5 deletions
|
@ -1187,11 +1187,15 @@ impl Assembler<AArch64GeneralReg, AArch64FloatReg> for AArch64Assembler {
|
|||
dst: AArch64GeneralReg,
|
||||
src: AArch64GeneralReg,
|
||||
) {
|
||||
match register_width {
|
||||
RegisterWidth::W8 => todo!(),
|
||||
RegisterWidth::W16 => todo!(),
|
||||
RegisterWidth::W32 => todo!(),
|
||||
RegisterWidth::W64 => mov_reg64_reg64(buf, dst, src),
|
||||
if dst != src {
|
||||
// TODO can we be more fine-grained here? there is a 32-bit version of this instruction
|
||||
// but that does not really help for W8 and W16
|
||||
match register_width {
|
||||
RegisterWidth::W8 => mov_reg64_reg64(buf, dst, src),
|
||||
RegisterWidth::W16 => mov_reg64_reg64(buf, dst, src),
|
||||
RegisterWidth::W32 => mov_reg64_reg64(buf, dst, src),
|
||||
RegisterWidth::W64 => mov_reg64_reg64(buf, dst, src),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue