32-bit float mov instruction

This commit is contained in:
Folkert 2023-07-09 15:41:41 +02:00
parent bb97c384bb
commit 6a19009acf
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 51 additions and 1 deletions

View file

@ -783,7 +783,11 @@ impl<
let reg = self.load_to_float_reg(buf, sym);
ASM::mov_base32_freg64(buf, to_offset, reg);
}
FloatWidth::F32 => todo!(),
FloatWidth::F32 => {
debug_assert_eq!(to_offset % 4, 0);
let reg = self.load_to_float_reg(buf, sym);
ASM::mov_base32_freg64(buf, to_offset, reg);
}
},
Builtin::Bool => {
// same as 8-bit integer, but we special-case true/false because these symbols