misc64.isa (10474:799c8ee4ecba) misc64.isa (10537:47fe87b0cf97)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2011-2013 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

79 if (imm1 <= imm2) {
80 bitMask = mask(diff + 1);
81 } else {
82 bitMask = mask(imm2 + 1);
83 bitMask = (bitMask >> imm1) | (bitMask << (intWidth - imm1));
84 diff += intWidth;
85 }
86 uint64_t topBits M5_VAR_USED = ~mask(diff+1);
1// -*- mode:c++ -*-
2
3// Copyright (c) 2011-2013 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

79 if (imm1 <= imm2) {
80 bitMask = mask(diff + 1);
81 } else {
82 bitMask = mask(imm2 + 1);
83 bitMask = (bitMask >> imm1) | (bitMask << (intWidth - imm1));
84 diff += intWidth;
85 }
86 uint64_t topBits M5_VAR_USED = ~mask(diff+1);
87 uint64_t result = (Op164 >> imm1) | (Op164 << (intWidth - imm1));
87 uint64_t result = imm1 == 0 ? Op164 :
88 (Op164 >> imm1) | (Op164 << (intWidth - imm1));
88 result &= bitMask;
89 '''
90
91 bfmCode = bfmMaskCode + 'Dest64 = result | (Dest64 & ~bitMask);'
92 bfmIop = InstObjParams("bfm", "Bfm64", "RegRegImmImmOp64", bfmCode);
93 subst("RegRegImmImmOp64", bfmIop)
94
95 ubfmCode = bfmMaskCode + 'Dest64 = result;'

--- 53 unchanged lines hidden ---
89 result &= bitMask;
90 '''
91
92 bfmCode = bfmMaskCode + 'Dest64 = result | (Dest64 & ~bitMask);'
93 bfmIop = InstObjParams("bfm", "Bfm64", "RegRegImmImmOp64", bfmCode);
94 subst("RegRegImmImmOp64", bfmIop)
95
96 ubfmCode = bfmMaskCode + 'Dest64 = result;'

--- 53 unchanged lines hidden ---