Skip to content

Commit

Permalink
Merge pull request #3280 from Sonicadvance1/rpres_afp_requirement
Browse files Browse the repository at this point in the history
FEXCore: Disables RPRES until AFP is audited and enabled
  • Loading branch information
Sonicadvance1 committed Nov 27, 2023
2 parents 389c6b1 + c71492e commit b027113
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 113 deletions.
1 change: 1 addition & 0 deletions FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ void Arm64Emitter::SpillStaticRegs(FEXCore::ARMEmitter::Register TmpReg, bool FP
// Disable FPCR.NEP and FPCR.AH
// NEP(2): Changes ASIMD scalar instructions to insert in to the lower bits of the destination.
// AH(1): Changes NaN behaviour in some instructions. Specifically fmin, fmax.
// Also interacts with RPRES to change reciprocal/rsqrt precision from 8-bit mantissa to 12-bit.
//
// Additional interesting AFP bits:
// FIZ(0): Flush Inputs to Zero
Expand Down
2 changes: 2 additions & 0 deletions FEXCore/Source/Interface/Core/HostFeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ HostFeatures::HostFeatures() {

// TODO: AFP is disabled until the scalar usage in the codebase can be audited to be working as expected.
SupportsAFP = false;
// RPRES has a dependency on AFP. Disable it until AFP is enabled.
SupportsRPRES = false;

if (!SupportsAtomics) {
WARN_ONCE_FMT("Host CPU doesn't support atomics. Expect bad performance");
Expand Down
1 change: 1 addition & 0 deletions unittests/InstructionCountCI/RPRES/DDD.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Features": {
"Bitness": 64,
"EnabledHostFeatures": [
"AFP",
"RPRES"
],
"DisabledHostFeatures": [
Expand Down
1 change: 1 addition & 0 deletions unittests/InstructionCountCI/RPRES/Secondary.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Features": {
"Bitness": 64,
"EnabledHostFeatures": [
"AFP",
"RPRES"
],
"DisabledHostFeatures": [
Expand Down
37 changes: 0 additions & 37 deletions unittests/InstructionCountCI/RPRES/Secondary_REP.json

This file was deleted.

2 changes: 0 additions & 2 deletions unittests/InstructionCountCI/RPRES/Secondary_REP_AFP.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"rsqrtss xmm0, xmm1": {
"ExpectedInstructionCount": 1,
"Comment": [
"AFP can make this more optimal",
"0xf3 0x0f 0x52"
],
"ExpectedArm64ASM": [
Expand All @@ -24,7 +23,6 @@
"rcpss xmm0, xmm1": {
"ExpectedInstructionCount": 1,
"Comment": [
"AFP can make this more optimal",
"0xf3 0x0f 0x53"
],
"ExpectedArm64ASM": [
Expand Down
74 changes: 0 additions & 74 deletions unittests/InstructionCountCI/RPRES/VEX_map1.json

This file was deleted.

0 comments on commit b027113

Please sign in to comment.