|
|
|
@ -233,7 +233,7 @@ mod tests { |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(0))), |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(1))), |
|
|
|
|
), |
|
|
|
|
Op::JumpIf(Cond::NotEqual, Label::Numbered(0)), |
|
|
|
|
Op::JumpIf(Cond::NotEqual, Label::Numbered(1)), |
|
|
|
|
Op::Mov( |
|
|
|
|
Wr::new(DstDisp::Register(Register::Gen(0))), |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(0))), |
|
|
|
@ -242,8 +242,9 @@ mod tests { |
|
|
|
|
Wr::new(DstDisp::Register(Register::Gen(1))), |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(2))), |
|
|
|
|
), |
|
|
|
|
Op::Label(Label::Numbered(0)), |
|
|
|
|
Op::JumpIf(Cond::LessOrEqual, Label::Numbered(1)), |
|
|
|
|
Op::Jump(Label::Numbered(0)), |
|
|
|
|
Op::Label(Label::Numbered(1)), |
|
|
|
|
Op::JumpIf(Cond::LessOrEqual, Label::Numbered(0)), |
|
|
|
|
Op::Mov( |
|
|
|
|
Wr::new(DstDisp::Register(Register::Gen(0))), |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(0))), |
|
|
|
@ -252,7 +253,7 @@ mod tests { |
|
|
|
|
Wr::new(DstDisp::Register(Register::Gen(1))), |
|
|
|
|
Rd::new(SrcDisp::Register(Register::Gen(1))), |
|
|
|
|
), |
|
|
|
|
Op::Label(Label::Numbered(1)), |
|
|
|
|
Op::Label(Label::Numbered(0)), |
|
|
|
|
], parsed); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|