Skip to content

Commit 71b3533

Browse files
committed
cargo fmt
1 parent 6833c32 commit 71b3533

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cranelift/codegen/src/isa/aarch64/inst/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ pub enum Inst {
794794
},
795795

796796
/// An atomic read-modify-write operation. These instructions require the
797-
/// Large System Extension (LSE) ISA support. The instructions have acquire-release
798-
/// semantics.
797+
/// Large System Extension (LSE) ISA support (FEAT_LSE). The instructions have
798+
/// acquire-release semantics.
799799
AtomicRMW {
800800
op: AtomicRMWOp,
801801
rs: Reg,
@@ -3656,9 +3656,7 @@ impl Inst {
36563656
let cond = cond.show_rru(mb_rru);
36573657
format!("ccmp {}, {}, {}, {}", rn, imm, nzcv, cond)
36583658
}
3659-
&Inst::AtomicRMW {
3660-
rs, rt, rn, ty, op
3661-
} => {
3659+
&Inst::AtomicRMW { rs, rt, rn, ty, op } => {
36623660
let op = match op {
36633661
AtomicRMWOp::Add => "ldaddal",
36643662
AtomicRMWOp::Clr => "ldclral",

cranelift/codegen/src/isa/aarch64/lower_inst.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
15401540
AtomicRmwOp::Umax => Some(AtomicRMWOp::Umax),
15411541
AtomicRmwOp::Smin => Some(AtomicRMWOp::Smin),
15421542
AtomicRmwOp::Umin => Some(AtomicRMWOp::Umin),
1543-
_ => None
1543+
_ => None,
15441544
};
15451545
if isa_flags.use_lse() && lse_op.is_some() {
15461546
ctx.emit(Inst::AtomicRMW {

0 commit comments

Comments
 (0)