static_inst.cc (6264:588457e03a81) static_inst.cc (6268:0f869e59c079)
1/* Copyright (c) 2007-2008 The Florida State University
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 374 unchanged lines hidden (view full) ---

383 }
384}
385
386void
387ArmStaticInst::printDataInst(std::ostream &os) const
388{
389 printMnemonic(os, machInst.sField ? "s" : "");
390 //XXX It would be nice if the decoder figured this all out for us.
1/* Copyright (c) 2007-2008 The Florida State University
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 374 unchanged lines hidden (view full) ---

383 }
384}
385
386void
387ArmStaticInst::printDataInst(std::ostream &os) const
388{
389 printMnemonic(os, machInst.sField ? "s" : "");
390 //XXX It would be nice if the decoder figured this all out for us.
391 unsigned opcode = machInst.opcode24_21;
391 unsigned opcode = machInst.opcode;
392 bool firstOp = true;
393
394 // Destination
395 // Cmp, cmn, teq, and tst don't have one.
396 if (opcode < 8 || opcode > 0xb) {
397 firstOp = false;
398 printReg(os, machInst.rd);
399 }

--- 24 unchanged lines hidden ---
392 bool firstOp = true;
393
394 // Destination
395 // Cmp, cmn, teq, and tst don't have one.
396 if (opcode < 8 || opcode > 0xb) {
397 firstOp = false;
398 printReg(os, machInst.rd);
399 }

--- 24 unchanged lines hidden ---