add float param regs

This commit is contained in:
Folkert 2023-09-14 17:59:45 +02:00
parent 93bd1b8f09
commit 84367b1a08
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -263,7 +263,19 @@ impl CallConv<AArch64GeneralReg, AArch64FloatReg, AArch64Assembler> for AArch64C
AArch64GeneralReg::IP0,
AArch64GeneralReg::IP1,
];
const FLOAT_PARAM_REGS: &'static [AArch64FloatReg] = &[];
// The first eight registers, v0-v7, are used to pass argument values
// into a subroutine and to return result values from a function.
const FLOAT_PARAM_REGS: &'static [AArch64FloatReg] = &[
AArch64FloatReg::V0,
AArch64FloatReg::V1,
AArch64FloatReg::V2,
AArch64FloatReg::V3,
AArch64FloatReg::V4,
AArch64FloatReg::V5,
AArch64FloatReg::V6,
AArch64FloatReg::V7,
];
const FLOAT_RETURN_REGS: &'static [AArch64FloatReg] = Self::FLOAT_PARAM_REGS;
const FLOAT_DEFAULT_FREE_REGS: &'static [AArch64FloatReg] = &[];