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 /// An atomic read-modify-write operation. These instructions require the
/// Large System Extension (LSE) ISA support. The instructions have acquire-release /// Large System Extension (LSE) ISA support (FEAT_LSE). The instructions have
/// semantics. /// acquire-release semantics.
AtomicRMW { AtomicRMW {
op: AtomicRMWOp, op: AtomicRMWOp,
rs: Reg, rs: Reg,
@@ -3656,9 +3656,7 @@ impl Inst {
let cond = cond.show_rru(mb_rru); let cond = cond.show_rru(mb_rru);
format!("ccmp {}, {}, {}, {}", rn, imm, nzcv, cond) format!("ccmp {}, {}, {}, {}", rn, imm, nzcv, cond)
} }
&Inst::AtomicRMW { &Inst::AtomicRMW { rs, rt, rn, ty, op } => {
rs, rt, rn, ty, op
} => {
let op = match op { let op = match op {
AtomicRMWOp::Add => "ldaddal", AtomicRMWOp::Add => "ldaddal",
AtomicRMWOp::Clr => "ldclral", 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::Umax => Some(AtomicRMWOp::Umax),
AtomicRmwOp::Smin => Some(AtomicRMWOp::Smin), AtomicRmwOp::Smin => Some(AtomicRMWOp::Smin),
AtomicRmwOp::Umin => Some(AtomicRMWOp::Umin), AtomicRmwOp::Umin => Some(AtomicRMWOp::Umin),
_ => None _ => None,
}; };
if isa_flags.use_lse() && lse_op.is_some() { if isa_flags.use_lse() && lse_op.is_some() {
ctx.emit(Inst::AtomicRMW { ctx.emit(Inst::AtomicRMW {