MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / AVXVectorRound

Method AVXVectorRound

FEXCore/Source/Interface/Core/OpcodeDispatcher/Vector.cpp:3640–3651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3638
3639template<IR::OpSize ElementSize>
3640void OpDispatchBuilder::AVXVectorRound(OpcodeArgs) {
3641 const auto Mode = Op->Src[1].Literal();
3642
3643 // No need to zero extend the vector in the event we have a
3644 // scalar source, especially since it's only inserted into another vector.
3645 const auto SrcSize = OpSizeFromSrc(Op);
3646
3647 Ref Src = LoadSource_WithOpSize(FPRClass, Op, Op->Src[0], SrcSize, Op->Flags);
3648 Ref Result = VectorRoundImpl(OpSizeFromDst(Op), ElementSize, Src, Mode);
3649
3650 StoreResult(FPRClass, Op, Result, OpSize::iInvalid);
3651}
3652
3653template void OpDispatchBuilder::AVXVectorRound<OpSize::i32Bit>(OpcodeArgs);
3654template void OpDispatchBuilder::AVXVectorRound<OpSize::i64Bit>(OpcodeArgs);

Callers

nothing calls this directly

Calls 1

LiteralMethod · 0.80

Tested by

no test coverage detected