Commit ffe657ca authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Normalize move to addu.

parent 9ad5c9c4
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.xml, src/inst/program_builder.cc:
Normalize move to addu.
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy-builder-gen.py,
......
......@@ -954,7 +954,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<!-- Data movement instructions -->
<instruction opcode="move" level="pseudo" kind="movement">
<syntax alias="add">
<syntax alias="addu">
<register />
<register />
<hidden value="*new Register(Register::general, Cpu::zero)"/>
......
......@@ -33,7 +33,7 @@ namespace inst
{
// FIXME: this move should be in the delay slot
_program->text_section ().
add_inst(* new Add(dest, src,
add_inst(* new Addu(dest, src,
* new Register(Register::general, Cpu::zero)));
_program->text_section ().add_inst(* new Bgez(src, *new IntExp(4)));
_program->text_section ().
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment