Home | History | Annotate | Download | only in test

Lines Matching refs:code

7 //   * Redistributions of source code must retain the above copyright notice,
51 // The Dump method generates code to store a snapshot of the register values.
55 // The dumping code is generated though the given MacroAssembler. No registers
61 inline int32_t wreg(unsigned code) const {
62 if (code == kSPRegInternalCode) {
65 VIXL_ASSERT(RegAliasesMatch(code));
66 return dump_.w_[code];
69 inline int64_t xreg(unsigned code) const {
70 if (code == kSPRegInternalCode) {
73 VIXL_ASSERT(RegAliasesMatch(code));
74 return dump_.x_[code];
78 inline uint32_t sreg_bits(unsigned code) const {
79 VIXL_ASSERT(FPRegAliasesMatch(code));
80 return dump_.s_[code];
83 inline float sreg(unsigned code) const {
84 return rawbits_to_float(sreg_bits(code));
87 inline uint64_t dreg_bits(unsigned code) const {
88 VIXL_ASSERT(FPRegAliasesMatch(code));
89 return dump_.d_[code];
92 inline double dreg(unsigned code) const {
93 return rawbits_to_double(dreg_bits(code));
122 // Check that the lower 32 bits of x<code> exactly match the 32 bits of
123 // w<code>. A failure of this test most likely represents a failure in the
125 bool RegAliasesMatch(unsigned code) const {
127 VIXL_ASSERT(code < kNumberOfRegisters);
128 return ((dump_.x_[code] & kWRegMask) == dump_.w_[code]);
138 bool FPRegAliasesMatch(unsigned code) const {
140 VIXL_ASSERT(code < kNumberOfFPRegisters);
141 return (dump_.d_[code] & kSRegMask) == dump_.s_[code];