luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::records::assembly_builder_x_64::AssemblyBuilderX64;
use crate::records::operand_x_64::OperandX64;

impl AssemblyBuilderX64 {
    pub fn vcvttsd2si(&mut self, dst: OperandX64, src: OperandX64) {
        self.place_avx_c_char_operand_x_64_operand_x_64_u8_bool_u8_u8(
            c"vcvttsd2si".as_ptr(),
            dst,
            src,
            0x2c,
            dst.base.size() == crate::enums::size_x_64::SizeX64::qword,
            0x0F, // AVX_0F
            0xF2, // AVX_F2
        );
    }
}