pub mod compact_z_p_z_s {
#[cfg(feature = "meta")]
pub const OPCODE_MASK: u32 = 0b11111111101111111110000000000000u32;
#[cfg(feature = "meta")]
pub const OPCODE: u32 = 0b00000101001000011000000000000000u32;
#[cfg(feature = "meta")]
pub const SHOULD_BE_MASK: u32 = 0b00000000000000000000000000000000u32;
#[cfg(feature = "meta")]
pub const NAME: &str = "compact_z_p_z_s";
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zd_OFFSET: u32 = 0u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zd_WIDTH: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zn_OFFSET: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zn_WIDTH: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Pg_OFFSET: u32 = 10u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Pg_WIDTH: u32 = 3u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_sz_OFFSET: u32 = 22u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_sz_WIDTH: u32 = 1u32;
#[inline]
pub const fn compact_z_p_z_s(
sz: ::aarchmrs_types::BitValue<1>,
Pg: ::aarchmrs_types::BitValue<3>,
Zn: ::aarchmrs_types::BitValue<5>,
Zd: ::aarchmrs_types::BitValue<5>,
) -> ::aarchmrs_types::InstructionCode {
::aarchmrs_types::InstructionCode::from_u32(
0b000001010u32 << 23u32
| sz.into_inner() << 22u32
| 0b100001100u32 << 13u32
| Pg.into_inner() << 10u32
| Zn.into_inner() << 5u32
| Zd.into_inner() << 0u32,
)
}
}
pub mod compact_z_p_z_ {
#[cfg(feature = "meta")]
pub const OPCODE_MASK: u32 = 0b11111111101111111110000000000000u32;
#[cfg(feature = "meta")]
pub const OPCODE: u32 = 0b00000101101000011000000000000000u32;
#[cfg(feature = "meta")]
pub const SHOULD_BE_MASK: u32 = 0b00000000000000000000000000000000u32;
#[cfg(feature = "meta")]
pub const NAME: &str = "compact_z_p_z_";
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zd_OFFSET: u32 = 0u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zd_WIDTH: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zn_OFFSET: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Zn_WIDTH: u32 = 5u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Pg_OFFSET: u32 = 10u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_Pg_WIDTH: u32 = 3u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_sz_OFFSET: u32 = 22u32;
#[cfg(feature = "meta_field")]
#[allow(nonstandard_style)]
pub const FIELD_sz_WIDTH: u32 = 1u32;
#[inline]
pub const fn compact_z_p_z_(
sz: ::aarchmrs_types::BitValue<1>,
Pg: ::aarchmrs_types::BitValue<3>,
Zn: ::aarchmrs_types::BitValue<5>,
Zd: ::aarchmrs_types::BitValue<5>,
) -> ::aarchmrs_types::InstructionCode {
::aarchmrs_types::InstructionCode::from_u32(
0b000001011u32 << 23u32
| sz.into_inner() << 22u32
| 0b100001100u32 << 13u32
| Pg.into_inner() << 10u32
| Zn.into_inner() << 5u32
| Zd.into_inner() << 0u32,
)
}
}