Allocate temporary intermediates when loading constants on aarch64 (#5366)
As loading constants on aarch64 can take up to 4 instructions, we need to plumb through some additional registers. Rather than pass a fixed list of registers in, pass an allocation function.
This commit is contained in:
@@ -752,13 +752,12 @@ impl ABIMachineSpec for S390xMachineDeps {
|
||||
unreachable!();
|
||||
}
|
||||
|
||||
fn gen_memcpy(
|
||||
fn gen_memcpy<F: FnMut(Type) -> Writable<Reg>>(
|
||||
_call_conv: isa::CallConv,
|
||||
_dst: Reg,
|
||||
_src: Reg,
|
||||
_tmp1: Writable<Reg>,
|
||||
_tmp2: Writable<Reg>,
|
||||
_size: usize,
|
||||
_alloc: F,
|
||||
) -> SmallVec<[Self::I; 8]> {
|
||||
unimplemented!("StructArgs not implemented for S390X yet");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user