Skip to content

Commit

Permalink
format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulchaphalkar committed Jan 16, 2025
1 parent 4b2ffa8 commit 8a0b4fb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion cranelift/assembler/meta/src/generate/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl dsl::Format {
});
fmtln!(f, "}}");
}
// implement pattern: [XmmReg(xmm), RegMem(rm128)]
[XmmReg(dst), XmmRegMem(src)] => {
fmtln!(f, "let {dst} = self.{dst}.enc();");
fmtln!(f, "match &self.{src} {{");
Expand Down
2 changes: 1 addition & 1 deletion cranelift/assembler/meta/src/generate/inst.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::{fmtln, generate_derive, Formatter};
use crate::dsl::{self};
use crate::dsl;

impl dsl::Inst {
/// `struct <inst> { <op>: Reg, <op>: Reg, ... }`
Expand Down
2 changes: 1 addition & 1 deletion cranelift/assembler/meta/src/instructions/or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ pub fn list() -> Vec<Inst> {
inst("orw", fmt("RM", [rw(r16), r(rm16)]), rex(0x0B).prefix(_66).r(), None),
inst("orl", fmt("RM", [rw(r32), r(rm32)]), rex(0x0B).r(), None),
inst("orq", fmt("RM", [rw(r64), r(rm64)]), rex(0x0B).w().r(), None),
inst("orpd", fmt("A", [rw(xmm), r(rm128)]), rex(0x560F).prefix(_66).r(), None), //0x0F56 according to manual
inst("orpd", fmt("A", [rw(xmm), r(rm128)]), rex(0x560F).prefix(_66).r(), None),
]
}
2 changes: 0 additions & 2 deletions cranelift/assembler/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ impl Amode {
match self {
Amode::RipRelative { .. } => None,
Amode::ImmReg { trap, .. } | Amode::ImmRegRegShift { trap, .. } => *trap,

}
}

Expand Down Expand Up @@ -174,7 +173,6 @@ pub enum XmmMem {
Mem(Amode),
}
impl XmmMem {

pub fn to_string(&self) -> String {
match self {
XmmMem::Xmm(xmm) => xmm.to_string().to_owned(),
Expand Down

0 comments on commit 8a0b4fb

Please sign in to comment.