cargo fmt

This commit is contained in:
Sam Parker
2021-09-14 15:05:40 +01:00
parent 80d596b055
commit 7da76f0601
2 changed files with 4 additions and 6 deletions

View File

@@ -794,8 +794,8 @@ pub enum Inst {
},
/// An atomic read-modify-write operation. These instructions require the
/// Large System Extension (LSE) ISA support. The instructions have acquire-release
/// semantics.
/// Large System Extension (LSE) ISA support (FEAT_LSE). The instructions have
/// acquire-release semantics.
AtomicRMW {
op: AtomicRMWOp,
rs: Reg,
@@ -3656,9 +3656,7 @@ impl Inst {
let cond = cond.show_rru(mb_rru);
format!("ccmp {}, {}, {}, {}", rn, imm, nzcv, cond)
}
&Inst::AtomicRMW {
rs, rt, rn, ty, op
} => {
&Inst::AtomicRMW { rs, rt, rn, ty, op } => {
let op = match op {
AtomicRMWOp::Add => "ldaddal",
AtomicRMWOp::Clr => "ldclral",

View File

@@ -1540,7 +1540,7 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
AtomicRmwOp::Umax => Some(AtomicRMWOp::Umax),
AtomicRmwOp::Smin => Some(AtomicRMWOp::Smin),
AtomicRmwOp::Umin => Some(AtomicRMWOp::Umin),
_ => None
_ => None,
};
if isa_flags.use_lse() && lse_op.is_some() {
ctx.emit(Inst::AtomicRMW {