Skip to content

Commit

Permalink
Arm64: Loosen restrictions on V{Load,Store}VectorMasked to allow 128-…
Browse files Browse the repository at this point in the history
…bit operation
  • Loading branch information
Sonicadvance1 committed Jun 19, 2024
1 parent 16f9db1 commit 859608b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,15 @@ DEF_OP(LoadMemTSO) {
}

DEF_OP(VLoadVectorMasked) {
LOGMAN_THROW_A_FMT(HostSupportsSVE256, "Need SVE support in order to use VLoadVectorMasked");
LOGMAN_THROW_A_FMT(HostSupportsSVE128 || HostSupportsSVE256, "Need SVE support in order to use VLoadVectorMasked");

const auto Op = IROp->C<IR::IROp_VLoadVectorMasked>();
const auto OpSize = IROp->Size;

const auto Is256Bit = OpSize == Core::CPUState::XMM_AVX_REG_SIZE;
if (Is256Bit) {
LOGMAN_THROW_A_FMT(HostSupportsSVE256, "Need SVE256 support in order to use VLoadVectorMasked with 256-bit operation");
}
const auto SubRegSize = ConvertSubRegSize8(IROp);

const auto CMPPredicate = ARMEmitter::PReg::p0;
Expand Down Expand Up @@ -793,12 +796,15 @@ DEF_OP(VLoadVectorMasked) {
}

DEF_OP(VStoreVectorMasked) {
LOGMAN_THROW_A_FMT(HostSupportsSVE256, "Need SVE support in order to use VStoreVectorMasked");
LOGMAN_THROW_A_FMT(HostSupportsSVE128 || HostSupportsSVE256, "Need SVE support in order to use VStoreVectorMasked");

const auto Op = IROp->C<IR::IROp_VStoreVectorMasked>();
const auto OpSize = IROp->Size;

const auto Is256Bit = OpSize == Core::CPUState::XMM_AVX_REG_SIZE;
if (Is256Bit) {
LOGMAN_THROW_A_FMT(HostSupportsSVE256, "Need SVE256 support in order to use VStoreVectorMasked with 256-bit operation");
}
const auto SubRegSize = ConvertSubRegSize8(IROp);

const auto CMPPredicate = ARMEmitter::PReg::p0;
Expand Down

0 comments on commit 859608b

Please sign in to comment.