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

Method BSWAPOp

FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp:3578–3589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3576}
3577
3578void OpDispatchBuilder::BSWAPOp(OpcodeArgs) {
3579 Ref Dest;
3580 const auto Size = OpSizeFromSrc(Op);
3581 if (Size == OpSize::i16Bit) {
3582 // BSWAP of 16bit is undef. ZEN+ causes the lower 16bits to get zero'd
3583 Dest = Constant(0);
3584 } else {
3585 Dest = LoadSource_WithOpSize(GPRClass, Op, Op->Dest, GetGPROpSize(), Op->Flags);
3586 Dest = _Rev(Size, Dest);
3587 }
3588 StoreResult(GPRClass, Op, Dest, OpSize::iInvalid);
3589}
3590
3591void OpDispatchBuilder::PUSHFOp(OpcodeArgs) {
3592 const auto Size = OpSizeFromSrc(Op);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected