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

Method LoadConstantShift

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

Source from the content-addressed store, hash-verified

1384}
1385
1386uint32_t OpDispatchBuilder::LoadConstantShift(X86Tables::DecodedOp Op, bool Is1Bit) {
1387 if (Is1Bit) {
1388 return 1;
1389 } else {
1390 // x86 masks the shift by 0x3F or 0x1F depending on size of op
1391 const auto Size = OpSizeFromSrc(Op);
1392 uint64_t Mask = Size == OpSize::i64Bit ? 0x3F : 0x1F;
1393
1394 return Op->Src[1].Literal() & Mask;
1395 }
1396}
1397
1398void OpDispatchBuilder::XGetBVOp(OpcodeArgs) {
1399 Ref Function = LoadGPRRegister(X86State::REG_RCX);

Callers

nothing calls this directly

Calls 1

LiteralMethod · 0.80

Tested by

no test coverage detected