loongArch64 0.2.6

loongArch64 support for Rust
Documentation
//! Assembly instructions

macro_rules! instruction {
    ($(#[$attr:meta])*, $fnname:ident, $asm:expr) => (
        $(#[$attr])*
        #[inline]
        pub unsafe fn $fnname() {
            match () {
                #[cfg(target_arch = "loongarch64")]
                () => unsafe { core::arch::asm!($asm) },

                #[cfg(not(target_arch = "loongarch64"))]
                () => unimplemented!(),
            }
        }
    )
}

instruction!(
    /// `idle` instruction wrapper
    ///
    /// The format is `idle level`. What is level is still unknown. Temporarily use `1` as `level`.
    , idle, "idle 1");