pub mod mips_asm_printer;
pub mod mips_instr_info;
pub mod mips_isel;
pub mod mips_mc_encoder;
pub mod mips_msa_isel;
pub mod mips_register_info;
pub mod mips_x86_bridge;
pub use mips_asm_printer::MipsAsmPrinter;
pub use mips_instr_info::{MipsInstrDesc, MipsInstrInfo, MipsOpcode, MipsOperandType};
pub use mips_isel::MipsInstructionSelector;
pub use mips_mc_encoder::MipsMCEncoder;
pub use mips_register_info::{
MipsRegClass, MipsRegisterInfo, MIPS_FPR_BASE, MIPS_FPR_COUNT, MIPS_GPR_BASE, MIPS_GPR_COUNT,
MIPS_MAX_REG_ID,
};
pub const MIPS_ENDIANNESS: &str = "big";
pub const MIPS_STACK_ALIGNMENT: u32 = 16;
pub const MIPS_RED_ZONE_SIZE: u32 = 0;
pub const MIPS_PAGE_SIZE: u32 = 4096;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_mips_constants() {
assert_eq!(MIPS_ENDIANNESS, "big");
assert_eq!(MIPS_STACK_ALIGNMENT, 16);
assert_eq!(MIPS_RED_ZONE_SIZE, 0);
assert_eq!(MIPS_PAGE_SIZE, 4096);
}
}