Derive PartialEq for Argument, pub SimplifiedIns::basic_form
This commit is contained in:
parent
87fe934548
commit
4a2bbbc6f8
|
@ -215,7 +215,7 @@ impl Display for Bit {
|
||||||
// Unsigned opaque argument.
|
// Unsigned opaque argument.
|
||||||
field_arg!(OpaqueU, u32);
|
field_arg!(OpaqueU, u32);
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||||
pub enum Argument {
|
pub enum Argument {
|
||||||
GPR(GPR),
|
GPR(GPR),
|
||||||
FPR(FPR),
|
FPR(FPR),
|
||||||
|
@ -443,7 +443,7 @@ impl Display for SimplifiedIns {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SimplifiedIns {
|
impl SimplifiedIns {
|
||||||
pub(crate) fn basic_form(ins: Ins) -> Self {
|
pub fn basic_form(ins: Ins) -> Self {
|
||||||
Self {
|
Self {
|
||||||
mnemonic: ins.op.mnemonic(),
|
mnemonic: ins.op.mnemonic(),
|
||||||
suffix: ins.suffix(),
|
suffix: ins.suffix(),
|
||||||
|
|
Loading…
Reference in New Issue