Deleted Added
sdiff udiff text old ( 12616:4b463b4dc098 ) new ( 13120:690a0db8e58b )
full compact
1/*
2 * Copyright (c) 2010, 2012-2013 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

153 M5_FALLTHROUGH;
154 default:
155 immValid = false;
156 break;
157 }
158 return bigData;
159}
160
161static inline uint64_t
162vfp_modified_imm(uint8_t data, bool wide)
163{
164 uint64_t bigData = data;
165 uint64_t repData;
166 if (wide) {
167 repData = bits(data, 6) ? 0xFF : 0;
168 bigData = (bits(bigData, 5, 0) << 48) |
169 (repData << 54) | (bits(~bigData, 6) << 62) |
170 (bits(bigData, 7) << 63);
171 } else {
172 repData = bits(data, 6) ? 0x1F : 0;
173 bigData = (bits(bigData, 5, 0) << 19) |
174 (repData << 25) | (bits(~bigData, 6) << 30) |
175 (bits(bigData, 7) << 31);
176 }
177 return bigData;
178}
179
180
181/**
182 * Base class for predicated integer operations.
183 */
184class PredOp : public ArmStaticInst
185{
186 protected:
187

--- 187 unchanged lines hidden ---