pred_inst.cc (7142:c63c06703d0f) pred_inst.cc (7143:c81f34f9e075)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

57 (IntRegIndex)(uint32_t)machInst.rm,
58 (IntRegIndex)(uint32_t)machInst.rs,
59 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
60 imm);
61 return ss.str();
62}
63
64std::string
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

57 (IntRegIndex)(uint32_t)machInst.rm,
58 (IntRegIndex)(uint32_t)machInst.rs,
59 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
60 imm);
61 return ss.str();
62}
63
64std::string
65PredImmOpBase::generateDisassembly(Addr pc, const SymbolTable *symtab) const
65PredImmOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const
66{
67 std::stringstream ss;
66{
67 std::stringstream ss;
68 unsigned rotate = machInst.rotate * 2;
69 uint32_t imm = machInst.imm;
70 imm = (imm << (32 - rotate)) | (imm >> rotate);
71 printDataInst(ss, true, machInst.opcode4 == 0, machInst.sField,
72 (IntRegIndex)(uint32_t)machInst.rd,
73 (IntRegIndex)(uint32_t)machInst.rn,
74 (IntRegIndex)(uint32_t)machInst.rm,
75 (IntRegIndex)(uint32_t)machInst.rs,
76 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
77 imm);
78 return ss.str();

--- 39 unchanged lines hidden ---
68 printDataInst(ss, true, machInst.opcode4 == 0, machInst.sField,
69 (IntRegIndex)(uint32_t)machInst.rd,
70 (IntRegIndex)(uint32_t)machInst.rn,
71 (IntRegIndex)(uint32_t)machInst.rm,
72 (IntRegIndex)(uint32_t)machInst.rs,
73 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
74 imm);
75 return ss.str();

--- 39 unchanged lines hidden ---