Lines Matching refs:fpureg
893 void Simulator::set_fpu_register(int fpureg, int64_t value) { in set_fpu_register() argument
894 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in set_fpu_register()
895 FPUregisters_[fpureg * 2] = value; in set_fpu_register()
899 void Simulator::set_fpu_register_word(int fpureg, int32_t value) { in set_fpu_register_word() argument
901 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in set_fpu_register_word()
904 pword = reinterpret_cast<int32_t*>(&FPUregisters_[fpureg * 2]); in set_fpu_register_word()
906 pword = reinterpret_cast<int32_t*>(&FPUregisters_[fpureg * 2]) + 1; in set_fpu_register_word()
912 void Simulator::set_fpu_register_hi_word(int fpureg, int32_t value) { in set_fpu_register_hi_word() argument
914 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in set_fpu_register_hi_word()
917 phiword = (reinterpret_cast<int32_t*>(&FPUregisters_[fpureg * 2])) + 1; in set_fpu_register_hi_word()
919 phiword = reinterpret_cast<int32_t*>(&FPUregisters_[fpureg * 2]); in set_fpu_register_hi_word()
925 void Simulator::set_fpu_register_float(int fpureg, float value) { in set_fpu_register_float() argument
926 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in set_fpu_register_float()
927 *bit_cast<float*>(&FPUregisters_[fpureg * 2]) = value; in set_fpu_register_float()
931 void Simulator::set_fpu_register_double(int fpureg, double value) { in set_fpu_register_double() argument
932 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in set_fpu_register_double()
933 *bit_cast<double*>(&FPUregisters_[fpureg * 2]) = value; in set_fpu_register_double()
962 int64_t Simulator::get_fpu_register(int fpureg) const { in get_fpu_register()
963 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register()
964 return FPUregisters_[fpureg * 2]; in get_fpu_register()
968 int32_t Simulator::get_fpu_register_word(int fpureg) const { in get_fpu_register_word()
969 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register_word()
970 return static_cast<int32_t>(FPUregisters_[fpureg * 2] & 0xFFFFFFFF); in get_fpu_register_word()
974 int32_t Simulator::get_fpu_register_signed_word(int fpureg) const { in get_fpu_register_signed_word()
975 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register_signed_word()
976 return static_cast<int32_t>(FPUregisters_[fpureg * 2] & 0xFFFFFFFF); in get_fpu_register_signed_word()
980 int32_t Simulator::get_fpu_register_hi_word(int fpureg) const { in get_fpu_register_hi_word()
981 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register_hi_word()
982 return static_cast<int32_t>((FPUregisters_[fpureg * 2] >> 32) & 0xFFFFFFFF); in get_fpu_register_hi_word()
986 float Simulator::get_fpu_register_float(int fpureg) const { in get_fpu_register_float()
987 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register_float()
988 return *bit_cast<float*>(const_cast<int64_t*>(&FPUregisters_[fpureg * 2])); in get_fpu_register_float()
992 double Simulator::get_fpu_register_double(int fpureg) const { in get_fpu_register_double()
993 DCHECK((fpureg >= 0) && (fpureg < kNumFPURegisters)); in get_fpu_register_double()
994 return *bit_cast<double*>(&FPUregisters_[fpureg * 2]); in get_fpu_register_double()