FPCR: Add AHP setter and FZ16 getter
This commit is contained in:
parent
7360a2579b
commit
55d590c01f
1 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,11 @@ public:
|
|||
return Common::Bit<26>(value);
|
||||
}
|
||||
|
||||
/// Alternate half-precision control flag.
|
||||
void AHP(bool AHP_) {
|
||||
value = Common::ModifyBit<26>(value, AHP_);
|
||||
}
|
||||
|
||||
/// Default NaN mode control bit.
|
||||
bool DN() const {
|
||||
return Common::Bit<25>(value);
|
||||
|
@ -52,6 +57,10 @@ public:
|
|||
return static_cast<FP::RoundingMode>(Common::Bits<22, 23>(value));
|
||||
}
|
||||
|
||||
bool FZ16() const {
|
||||
return Common::Bit<19>(value);
|
||||
}
|
||||
|
||||
/// Input denormal exception trap enable flag.
|
||||
bool IDE() const {
|
||||
return Common::Bit<15>(value);
|
||||
|
|
Loading…
Reference in a new issue