pub mod sparc_asm_printer;
pub mod sparc_instr_info;
pub mod sparc_isel;
pub mod sparc_mc_encoder;
pub mod sparc_register_info;
pub mod sparc_vis_isel;
pub mod sparc_x86_bridge;
pub use sparc_asm_printer::SparcAsmPrinter;
pub use sparc_instr_info::{SparcInstrDesc, SparcInstrInfo, SparcOpcode, SparcOperandType};
pub use sparc_isel::SparcInstructionSelector;
pub use sparc_mc_encoder::SparcMCEncoder;
pub use sparc_register_info::{
SparcRegClass, SparcRegisterInfo, SPARC_FPR_BASE, SPARC_FPR_COUNT, SPARC_GPR_BASE,
SPARC_GPR_COUNT, SPARC_MAX_REG_ID,
};
pub const SPARC_ENDIANNESS: &str = "big";
pub const SPARC_STACK_ALIGNMENT: u32 = 16;
pub const SPARC_RED_ZONE_SIZE: u32 = 0;
pub const SPARC_PAGE_SIZE: u32 = 8192;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_sparc_constants() {
assert_eq!(SPARC_ENDIANNESS, "big");
assert_eq!(SPARC_STACK_ALIGNMENT, 16);
assert_eq!(SPARC_RED_ZONE_SIZE, 0);
assert_eq!(SPARC_PAGE_SIZE, 8192);
}
}