mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-18 17:10:52 +00:00
Two more mov variants.
This commit is contained in:
parent
4df7973639
commit
3f35a74b84
@ -487,6 +487,9 @@ impl Emitter for Assembler {
|
||||
(Size::S8, Location::Imm32(x), Location::GPR(dst)) => {
|
||||
dynasm!(self ; b >after; data: ; .dword x as u8 as i32; after: ; ldr W(map_gpr(dst).x()), <data);
|
||||
}
|
||||
(Size::S8, Location::Imm64(x), Location::GPR(dst)) => {
|
||||
dynasm!(self ; b >after; data: ; .dword x as u8 as i32; after: ; ldr W(map_gpr(dst).x()), <data);
|
||||
}
|
||||
(Size::S16, Location::GPR(src), Location::Memory(base, disp)) => {
|
||||
if disp >= 0 {
|
||||
dynasm!(self ; b >after ; disp: ; .dword disp ; after: ; ldr w_tmp3, <disp ; add x_tmp3, x_tmp3, X(map_gpr(base).x()));
|
||||
@ -514,6 +517,9 @@ impl Emitter for Assembler {
|
||||
(Size::S16, Location::Imm32(x), Location::GPR(dst)) => {
|
||||
dynasm!(self ; b >after; data: ; .dword x as u16 as i32; after: ; ldr W(map_gpr(dst).x()), <data);
|
||||
}
|
||||
(Size::S16, Location::Imm64(x), Location::GPR(dst)) => {
|
||||
dynasm!(self ; b >after; data: ; .dword x as u16 as i32; after: ; ldr W(map_gpr(dst).x()), <data);
|
||||
}
|
||||
(Size::S32, Location::XMM(src), Location::XMM(dst)) => {
|
||||
dynasm!(self ; fmov S(map_xmm(dst).v()), S(map_xmm(src).v()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user