#![allow(non_snake_case)]
#![allow(unused)]
use crate::error::Result;
use crate::utils::*;
use super::super::formatter::*;
use super::super::instruction::*;
use super::super::operand::*;
use super::super::consts::*;
use super::super::config::*;
use super::super::decoder::*;
pub(crate) struct IclassOrnRT1Rrx;
impl IclassOrnRT1Rrx {
pub(crate) fn decode(data: u32, decoder: &mut Decoder) -> Result<Instruction> {
let Rm = (data >> 0) & 15;
let Rm_post = Rm;
let field_31 = (data >> 25) & 127;
let field_31_post = field_31;
let imm3 = (data >> 12) & 7;
let imm3_post = imm3;
let S = (data >> 20) & 1;
let S_post = S;
let imm2 = (data >> 6) & 3;
let imm2_post = imm2;
let stype = (data >> 4) & 3;
let stype_post = stype;
let Rn = (data >> 16) & 15;
let Rn_post = Rn;
let Rd = (data >> 8) & 15;
let Rd_post = Rd;
let field_15 = (data >> 15) & 1;
let field_15_post = field_15;
let op1 = (data >> 21) & 15;
let op1_post = op1;
if ((S_post == 0) && ((imm3_post == 0) && ((imm2_post == 0) && (stype_post == 3)))) {
return OrnRT1Rrx::decode(data as u32, decoder);
}
if ((S_post == 0) && !((((imm3_post == 0) && ((imm2_post == 0) && (stype_post == 3)))))) {
return OrnRT1::decode(data as u32, decoder);
}
if ((S_post == 1) && ((imm3_post == 0) && ((imm2_post == 0) && (stype_post == 3)))) {
return OrnsRT1Rrx::decode(data as u32, decoder);
}
if ((S_post == 1) && !((((imm3_post == 0) && ((imm2_post == 0) && (stype_post == 3)))))) {
return OrnsRT1::decode(data as u32, decoder);
}
unreachable!()
}
}
pub struct OrnRT1Rrx;
impl OrnRT1Rrx {
pub fn mnemonic(_instr: &Instruction) -> Mnemonic {
Mnemonic::ORN
}
pub fn condition(instr: &Instruction) -> ConditionalInstruction {
ConditionalInstruction::Condition(0, false, false)
}
pub fn size(_instr: &Instruction) -> usize {4}
pub fn decode(data: u32, decoder: &mut Decoder) -> Result<Instruction> {
let Rn = (data >> 16) & 15;
let Rn_post = Rn;
let Rd = (data >> 8) & 15;
let Rd_post = Rd;
let Rm = (data >> 0) & 15;
let Rm_post = Rm;
let Rd_post = Rd;
let Rn_post = Rn;
let Rm_post = Rm;
let op_0 = MnemonicCondition::Al;
let op_1 = Register::decode(Rd_post)?;
let op_2 = Register::decode(Rn_post)?;
let op_3 = Register::decode(Rm_post)?;
let op_4 = Shift::RRX;
let mut instr = Instruction::builder(Code::ORN_r_T1_RRX)
.operand(0, op_0)?
.operand(1, op_1)?
.operand(2, op_2)?
.operand(3, op_3)?
.operand(4, op_4)?
.build();
Ok(instr)
}
pub fn encode(instr: &Instruction, buf: &mut Vec<u8>) -> Result<usize> {
let Rd_pre = instr.op1().as_register()?.encode();
let Rn_pre = instr.op2().as_register()?.encode();
let Rm_pre = instr.op3().as_register()?.encode();
let Rd = (Rd_pre & 15);
let Rn = (Rn_pre & 15);
let Rm = (Rm_pre & 15);
let mut instr: u32 = 0b11101010011000000000000000110000;
instr |= (Rd & 15) << 8;
instr |= (Rn & 15) << 16;
instr |= (Rm & 15) << 0;
let instr_1 = (instr & 0xffff) as u16;
let instr_2 = ((instr >> 16) & 0xffff) as u16;
buf.extend(instr_2.to_le_bytes());
buf.extend(instr_1.to_le_bytes());
Ok(4)
}
pub fn encode_block(instr: &mut Instruction, buf: &mut Vec<u8>, labels: &std::collections::HashMap<u64, u64>) -> Result<usize> {
Self::encode(instr, buf)
}
pub fn check_op0(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::MnemonicCondition(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op1(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op2(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op3(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op4(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Shift(Shift::RRX) = op {
return Ok(())
}
todo!()
}
pub fn check_op5(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn check_op6(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn format(instr: &Instruction, fmt: &mut impl Formatter, output: &mut impl FormatterOutput, config: &Config) -> Result<()> {
fmt.format_mnemonic(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, 0)?;
fmt.format_qualifier(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, FormatterQualifier::Wide, true, false)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, FormatterTextKind::Space)?;
if !instr.op1().is_none() {
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, 1)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
};
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, 2)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, 3)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1_rrx, &instr, 4)?;
Ok(())
}
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnRT1RrxAliases {
None,
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnRT1RrxEncodings {
None
}
pub struct OrnRT1;
impl OrnRT1 {
pub fn mnemonic(_instr: &Instruction) -> Mnemonic {
Mnemonic::ORN
}
pub fn condition(instr: &Instruction) -> ConditionalInstruction {
ConditionalInstruction::Condition(0, false, false)
}
pub fn size(_instr: &Instruction) -> usize {4}
pub fn decode(data: u32, decoder: &mut Decoder) -> Result<Instruction> {
let Rn = (data >> 16) & 15;
let Rn_post = Rn;
let imm3 = (data >> 12) & 7;
let imm3_post = imm3;
let Rd = (data >> 8) & 15;
let Rd_post = Rd;
let imm2 = (data >> 6) & 3;
let imm2_post = imm2;
let stype = (data >> 4) & 3;
let stype_post = stype;
let Rm = (data >> 0) & 15;
let Rm_post = Rm;
let imm2_imm3_post = (imm3 << 2) | imm2;
let Rd_post = Rd;
let Rn_post = Rn;
let Rm_post = Rm;
let op_0 = MnemonicCondition::Al;
let op_1 = Register::decode(Rd_post)?;
let op_2 = Register::decode(Rn_post)?;
let op_3 = Register::decode(Rm_post)?;
let op_4 = match stype {
0 => if imm2_imm3_post == 0 {
Operand::None
} else {
Operand::Shift(Shift::LSL(imm2_imm3_post))
}
1 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::LSR(32))
} else {
Operand::Shift(Shift::LSR(imm2_imm3_post))
}
2 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::ASR(32))
} else {
Operand::Shift(Shift::ASR(imm2_imm3_post))
}
3 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::RRX)
} else {
Operand::Shift(Shift::ROR(imm2_imm3_post))
}
_ => todo!(),
};
let mut instr = Instruction::builder(Code::ORN_r_T1)
.operand(0, op_0)?
.operand(1, op_1)?
.operand(2, op_2)?
.operand(3, op_3)?
.operand(4, op_4)?
.build();
Ok(instr)
}
pub fn encode(instr: &Instruction, buf: &mut Vec<u8>) -> Result<usize> {
let Rd_pre = instr.op1().as_register()?.encode();
let Rn_pre = instr.op2().as_register()?.encode();
let Rm_pre = instr.op3().as_register()?.encode();
let (stype, imm2_imm3_pre) = {
if let Operand::None = instr.op4() {
(0, 0)
} else {
match instr.op4().as_shift()? {
Shift::LSL(value) => (0, *value),
Shift::LSR(value) => (1, *value),
Shift::ASR(value) => (2, *value),
Shift::ROR(value) => (3, *value),
_ => todo!(),
}
}
};
let Rd = (Rd_pre & 15);
let Rn = (Rn_pre & 15);
let Rm = (Rm_pre & 15);
let imm2 = (imm2_imm3_pre & 3);
let imm3 = (imm2_imm3_pre >> 2) & 7;
let mut instr: u32 = 0b11101010011000000000000000000000;
instr |= (Rd & 15) << 8;
instr |= (Rn & 15) << 16;
instr |= (Rm & 15) << 0;
instr |= (imm2 & 3) << 6;
instr |= (imm3 & 7) << 12;
instr |= (stype & 3) << 4;
let instr_1 = (instr & 0xffff) as u16;
let instr_2 = ((instr >> 16) & 0xffff) as u16;
buf.extend(instr_2.to_le_bytes());
buf.extend(instr_1.to_le_bytes());
Ok(4)
}
pub fn encode_block(instr: &mut Instruction, buf: &mut Vec<u8>, labels: &std::collections::HashMap<u64, u64>) -> Result<usize> {
Self::encode(instr, buf)
}
pub fn check_op0(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::MnemonicCondition(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op1(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op2(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op3(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op4(instr: &Instruction, op: &Operand) -> Result<()> {
if op.is_none() {
return Ok(())
}
if let Operand::Shift(s) = op {
match s {
Shift::LSL(value) => if *value < 1 || *value > 31 {
todo!()
}
Shift::LSR(value) => if *value < 1 || *value > 32 {
todo!()
}
Shift::ASR(value) => if *value < 1 || *value > 32 {
todo!()
}
Shift::ROR(value) => if *value < 1 || *value > 31 {
todo!()
}
_ => todo!(),
}
return Ok(())
}
todo!()
}
pub fn check_op5(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn check_op6(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn format(instr: &Instruction, fmt: &mut impl Formatter, output: &mut impl FormatterOutput, config: &Config) -> Result<()> {
fmt.format_mnemonic(output, &config.global, &config.instructions.orn_r_t1, &instr)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1, &instr, 0)?;
fmt.format_qualifier(output, &config.global, &config.instructions.orn_r_t1, &instr, FormatterQualifier::Wide, true, false)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1, &instr, FormatterTextKind::Space)?;
if !instr.op1().is_none() {
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1, &instr, 1)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1, &instr, FormatterTextKind::Comma)?;
};
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1, &instr, 2)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1, &instr, 3)?;
if !instr.op4().is_none() && !(instr.op4().as_shift()?.is_lsl() && instr.op4().as_shift()?.value() == 0) {
fmt.format_punctuation(output, &config.global, &config.instructions.orn_r_t1, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orn_r_t1, &instr, 4)?;
};
Ok(())
}
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnRT1Aliases {
None,
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnRT1Encodings {
None
}
pub struct OrnsRT1Rrx;
impl OrnsRT1Rrx {
pub fn mnemonic(_instr: &Instruction) -> Mnemonic {
Mnemonic::ORNS
}
pub fn condition(instr: &Instruction) -> ConditionalInstruction {
ConditionalInstruction::Condition(0, false, false)
}
pub fn size(_instr: &Instruction) -> usize {4}
pub fn decode(data: u32, decoder: &mut Decoder) -> Result<Instruction> {
let Rn = (data >> 16) & 15;
let Rn_post = Rn;
let Rd = (data >> 8) & 15;
let Rd_post = Rd;
let Rm = (data >> 0) & 15;
let Rm_post = Rm;
let Rd_post = Rd;
let Rn_post = Rn;
let Rm_post = Rm;
let op_0 = MnemonicCondition::Al;
let op_1 = Register::decode(Rd_post)?;
let op_2 = Register::decode(Rn_post)?;
let op_3 = Register::decode(Rm_post)?;
let op_4 = Shift::RRX;
let mut instr = Instruction::builder(Code::ORNS_r_T1_RRX)
.operand(0, op_0)?
.operand(1, op_1)?
.operand(2, op_2)?
.operand(3, op_3)?
.operand(4, op_4)?
.build();
Ok(instr)
}
pub fn encode(instr: &Instruction, buf: &mut Vec<u8>) -> Result<usize> {
let Rd_pre = instr.op1().as_register()?.encode();
let Rn_pre = instr.op2().as_register()?.encode();
let Rm_pre = instr.op3().as_register()?.encode();
let Rd = (Rd_pre & 15);
let Rn = (Rn_pre & 15);
let Rm = (Rm_pre & 15);
let mut instr: u32 = 0b11101010011100000000000000110000;
instr |= (Rd & 15) << 8;
instr |= (Rn & 15) << 16;
instr |= (Rm & 15) << 0;
let instr_1 = (instr & 0xffff) as u16;
let instr_2 = ((instr >> 16) & 0xffff) as u16;
buf.extend(instr_2.to_le_bytes());
buf.extend(instr_1.to_le_bytes());
Ok(4)
}
pub fn encode_block(instr: &mut Instruction, buf: &mut Vec<u8>, labels: &std::collections::HashMap<u64, u64>) -> Result<usize> {
Self::encode(instr, buf)
}
pub fn check_op0(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::MnemonicCondition(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op1(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op2(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op3(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op4(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Shift(Shift::RRX) = op {
return Ok(())
}
todo!()
}
pub fn check_op5(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn check_op6(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn format(instr: &Instruction, fmt: &mut impl Formatter, output: &mut impl FormatterOutput, config: &Config) -> Result<()> {
fmt.format_mnemonic(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, 0)?;
fmt.format_qualifier(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, FormatterQualifier::Wide, true, false)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, FormatterTextKind::Space)?;
if !instr.op1().is_none() {
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, 1)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
};
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, 2)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, 3)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1_rrx, &instr, 4)?;
Ok(())
}
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnsRT1RrxAliases {
None,
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnsRT1RrxEncodings {
None
}
pub struct OrnsRT1;
impl OrnsRT1 {
pub fn mnemonic(_instr: &Instruction) -> Mnemonic {
Mnemonic::ORNS
}
pub fn condition(instr: &Instruction) -> ConditionalInstruction {
ConditionalInstruction::Condition(0, false, false)
}
pub fn size(_instr: &Instruction) -> usize {4}
pub fn decode(data: u32, decoder: &mut Decoder) -> Result<Instruction> {
let Rn = (data >> 16) & 15;
let Rn_post = Rn;
let imm3 = (data >> 12) & 7;
let imm3_post = imm3;
let Rd = (data >> 8) & 15;
let Rd_post = Rd;
let imm2 = (data >> 6) & 3;
let imm2_post = imm2;
let stype = (data >> 4) & 3;
let stype_post = stype;
let Rm = (data >> 0) & 15;
let Rm_post = Rm;
let imm2_imm3_post = (imm3 << 2) | imm2;
let Rd_post = Rd;
let Rn_post = Rn;
let Rm_post = Rm;
let op_0 = MnemonicCondition::Al;
let op_1 = Register::decode(Rd_post)?;
let op_2 = Register::decode(Rn_post)?;
let op_3 = Register::decode(Rm_post)?;
let op_4 = match stype {
0 => if imm2_imm3_post == 0 {
Operand::None
} else {
Operand::Shift(Shift::LSL(imm2_imm3_post))
}
1 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::LSR(32))
} else {
Operand::Shift(Shift::LSR(imm2_imm3_post))
}
2 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::ASR(32))
} else {
Operand::Shift(Shift::ASR(imm2_imm3_post))
}
3 => if imm2_imm3_post == 0 {
Operand::Shift(Shift::RRX)
} else {
Operand::Shift(Shift::ROR(imm2_imm3_post))
}
_ => todo!(),
};
let mut instr = Instruction::builder(Code::ORNS_r_T1)
.operand(0, op_0)?
.operand(1, op_1)?
.operand(2, op_2)?
.operand(3, op_3)?
.operand(4, op_4)?
.build();
Ok(instr)
}
pub fn encode(instr: &Instruction, buf: &mut Vec<u8>) -> Result<usize> {
let Rd_pre = instr.op1().as_register()?.encode();
let Rn_pre = instr.op2().as_register()?.encode();
let Rm_pre = instr.op3().as_register()?.encode();
let (stype, imm2_imm3_pre) = {
if let Operand::None = instr.op4() {
(0, 0)
} else {
match instr.op4().as_shift()? {
Shift::LSL(value) => (0, *value),
Shift::LSR(value) => (1, *value),
Shift::ASR(value) => (2, *value),
Shift::ROR(value) => (3, *value),
_ => todo!(),
}
}
};
let Rd = (Rd_pre & 15);
let Rn = (Rn_pre & 15);
let Rm = (Rm_pre & 15);
let imm2 = (imm2_imm3_pre & 3);
let imm3 = (imm2_imm3_pre >> 2) & 7;
let mut instr: u32 = 0b11101010011100000000000000000000;
instr |= (Rd & 15) << 8;
instr |= (Rn & 15) << 16;
instr |= (Rm & 15) << 0;
instr |= (imm2 & 3) << 6;
instr |= (imm3 & 7) << 12;
instr |= (stype & 3) << 4;
let instr_1 = (instr & 0xffff) as u16;
let instr_2 = ((instr >> 16) & 0xffff) as u16;
buf.extend(instr_2.to_le_bytes());
buf.extend(instr_1.to_le_bytes());
Ok(4)
}
pub fn encode_block(instr: &mut Instruction, buf: &mut Vec<u8>, labels: &std::collections::HashMap<u64, u64>) -> Result<usize> {
Self::encode(instr, buf)
}
pub fn check_op0(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::MnemonicCondition(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op1(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op2(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op3(instr: &Instruction, op: &Operand) -> Result<()> {
if let Operand::Register(r) = op {
return Ok(())
}
todo!()
}
pub fn check_op4(instr: &Instruction, op: &Operand) -> Result<()> {
if op.is_none() {
return Ok(())
}
if let Operand::Shift(s) = op {
match s {
Shift::LSL(value) => if *value < 1 || *value > 31 {
todo!()
}
Shift::LSR(value) => if *value < 1 || *value > 32 {
todo!()
}
Shift::ASR(value) => if *value < 1 || *value > 32 {
todo!()
}
Shift::ROR(value) => if *value < 1 || *value > 31 {
todo!()
}
_ => todo!(),
}
return Ok(())
}
todo!()
}
pub fn check_op5(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn check_op6(instr: &Instruction, op: &Operand) -> Result<()> {
todo!()
}
pub fn format(instr: &Instruction, fmt: &mut impl Formatter, output: &mut impl FormatterOutput, config: &Config) -> Result<()> {
fmt.format_mnemonic(output, &config.global, &config.instructions.orns_r_t1, &instr)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1, &instr, 0)?;
fmt.format_qualifier(output, &config.global, &config.instructions.orns_r_t1, &instr, FormatterQualifier::Wide, true, false)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1, &instr, FormatterTextKind::Space)?;
if !instr.op1().is_none() {
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1, &instr, 1)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1, &instr, FormatterTextKind::Comma)?;
};
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1, &instr, 2)?;
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1, &instr, 3)?;
if !instr.op4().is_none() && !(instr.op4().as_shift()?.is_lsl() && instr.op4().as_shift()?.value() == 0) {
fmt.format_punctuation(output, &config.global, &config.instructions.orns_r_t1, &instr, FormatterTextKind::Comma)?;
fmt.format_operand(output, &config.global, &config.instructions.orns_r_t1, &instr, 4)?;
};
Ok(())
}
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnsRT1Aliases {
None,
}
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum OrnsRT1Encodings {
None
}