Add comments about floating point instructions at bottom

This commit is contained in:
Ajai Nelson 2023-04-19 15:34:43 -04:00
parent d8f1310ce1
commit dbf85e5461
No known key found for this signature in database
GPG key ID: 5744FCFB528CB779

View file

@ -2185,11 +2185,14 @@ impl FloatingPointImmediate {
}
}
// Below here are the functions for all of the assembly instructions.
// Below here are the functions for all of the base assembly instructions.
// Their names are based on the instruction and operators combined.
// You should call `buf.reserve()` if you push or extend more than once.
// Unit tests are added at the bottom of the file to ensure correct asm generation.
// Please keep these in alphanumeric order.
// Floating-point (and advanced SIMD) instructions are at the bottom.
// ARM manual section C6
/// `ADD Xd, Xn, imm12` -> Add Xn and imm12 and place the result into Xd.
#[inline(always)]
@ -2716,6 +2719,9 @@ fn udiv_reg64_reg64_reg64(
buf.extend(inst.bytes());
}
// Floating point (and advanced SIMD) instructions
// ARM manual section C7
#[inline(always)]
fn fadd_freg_freg_freg(
buf: &mut Vec<'_, u8>,