luaur_code_gen/methods/
assembly_builder_x_64_vroundps.rs1use crate::enums::rounding_mode_x_64::RoundingModeX64;
2use crate::records::assembly_builder_x_64::AssemblyBuilderX64;
3use crate::records::operand_x_64::OperandX64;
4
5impl AssemblyBuilderX64 {
6 pub fn vroundps(&mut self, dst: OperandX64, src: OperandX64, rounding_mode: RoundingModeX64) {
7 if self.log_text {
9 self.log_c_char_operand_x_64_operand_x_64_operand_x_64(
11 b"vroundps\0".as_ptr() as *const core::ffi::c_char,
12 dst,
13 src,
14 OperandX64::from((rounding_mode as u8 | 0x08) as i32),
15 );
16 }
17
18 self.place_vex(
24 dst,
25 OperandX64::reg(crate::records::register_x_64::RegisterX64::noreg),
26 src,
27 false,
28 0x3A,
29 0x66,
30 );
31 self.place(0x08);
32 self.place_reg_and_mod_reg_mem(dst, src, 1);
33 self.place_imm_8((rounding_mode as u8 | 0x08) as i32);
34
35 self.commit();
36 }
37}