Home | History | Annotate | Download | only in aarch64

Lines Matching refs:code

7 //   * Redistributions of source code must retain the above copyright notice,
71 // The Dump method generates code to store a snapshot of the register values.
75 // The dumping code is generated though the given MacroAssembler. No registers
81 inline int32_t wreg(unsigned code) const {
82 if (code == kSPRegInternalCode) {
85 VIXL_ASSERT(RegAliasesMatch(code));
86 return dump_.w_[code];
89 inline int64_t xreg(unsigned code) const {
90 if (code == kSPRegInternalCode) {
93 VIXL_ASSERT(RegAliasesMatch(code));
94 return dump_.x_[code];
98 inline uint32_t sreg_bits(unsigned code) const {
99 VIXL_ASSERT(FPRegAliasesMatch(code));
100 return dump_.s_[code];
103 inline float sreg(unsigned code) const {
104 return RawbitsToFloat(sreg_bits(code));
107 inline uint64_t dreg_bits(unsigned code) const {
108 VIXL_ASSERT(FPRegAliasesMatch(code));
109 return dump_.d_[code];
112 inline double dreg(unsigned code) const {
113 return RawbitsToDouble(dreg_bits(code));
116 inline vec128_t qreg(unsigned code) const { return dump_.q_[code]; }
142 // Check that the lower 32 bits of x<code> exactly match the 32 bits of
143 // w<code>. A failure of this test most likely represents a failure in the
145 bool RegAliasesMatch(unsigned code) const {
147 VIXL_ASSERT(code < kNumberOfRegisters);
148 return ((dump_.x_[code] & kWRegMask) == dump_.w_[code]);
158 bool FPRegAliasesMatch(unsigned code) const {
160 VIXL_ASSERT(code < kNumberOfFPRegisters);
161 return (dump_.d_[code] & kSRegMask) == dump_.s_[code];