Lines Matching defs:code

7 //   * Redistributions of source code must retain the above copyright notice,
107 // The Dump method generates code to store a snapshot of the register values.
111 // The dumping code is generated though the given MacroAssembler. No registers
117 inline int32_t wreg(unsigned code) const {
118 if (code == kSPRegInternalCode) {
121 VIXL_ASSERT(RegAliasesMatch(code));
122 return dump_.w_[code];
125 inline int64_t xreg(unsigned code) const {
126 if (code == kSPRegInternalCode) {
129 VIXL_ASSERT(RegAliasesMatch(code));
130 return dump_.x_[code];
134 inline uint16_t hreg_bits(unsigned code) const {
135 VIXL_ASSERT(VRegAliasesMatch(code));
136 return dump_.h_[code];
139 inline uint32_t sreg_bits(unsigned code) const {
140 VIXL_ASSERT(VRegAliasesMatch(code));
141 return dump_.s_[code];
144 inline Float16 hreg(unsigned code) const {
145 return RawbitsToFloat16(hreg_bits(code));
148 inline float sreg(unsigned code) const {
149 return RawbitsToFloat(sreg_bits(code));
152 inline uint64_t dreg_bits(unsigned code) const {
153 VIXL_ASSERT(VRegAliasesMatch(code));
154 return dump_.d_[code];
157 inline double dreg(unsigned code) const {
158 return RawbitsToDouble(dreg_bits(code));
161 inline QRegisterValue qreg(unsigned code) const { return dump_.q_[code]; }
164 inline T zreg_lane(unsigned code, int lane) const {
165 VIXL_ASSERT(VRegAliasesMatch(code));
168 return dump_.z_[code].GetLane<T>(lane);
171 inline uint64_t zreg_lane(unsigned code,
176 return zreg_lane<uint8_t>(code, lane);
178 return zreg_lane<uint16_t>(code, lane);
180 return zreg_lane<uint32_t>(code, lane);
182 return zreg_lane<uint64_t>(code, lane);
188 inline uint64_t preg_lane(unsigned code,
201 Chunk chunk = dump_.p_[code].GetLane<Chunk>(chunk_index);
258 // Check that the lower 32 bits of x<code> exactly match the 32 bits of
259 // w<code>. A failure of this test most likely represents a failure in the
261 bool RegAliasesMatch(unsigned code) const {
263 VIXL_ASSERT(code < kNumberOfRegisters);
264 return ((dump_.x_[code] & kWRegMask) == dump_.w_[code]);
274 bool VRegAliasesMatch(unsigned code) const {
276 VIXL_ASSERT(code < kNumberOfVRegisters);
277 bool match = ((dump_.q_[code].GetLane<uint64_t>(0) == dump_.d_[code]) &&
278 ((dump_.d_[code] & kSRegMask) == dump_.s_[code]) &&
279 ((dump_.s_[code] & kHRegMask) == dump_.h_[code]));
282 memcmp(&dump_.q_[code], &dump_.z_[code], kQRegSizeInBytes) == 0;
583 // we need to enable it in the infrastructure code for each test.
649 // is optimised for call-site clarity, not generated code quality, so it doesn't