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

Method FILDF64

FEXCore/Source/Interface/Core/OpcodeDispatcher/X87F64.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void OpDispatchBuilder::FILDF64(OpcodeArgs) {
95 const auto ReadWidth = OpSizeFromSrc(Op);
96
97 // Read from memory
98 Ref Data = LoadSource_WithOpSize(GPRClass, Op, Op->Src[0], ReadWidth, Op->Flags);
99 if (ReadWidth == OpSize::i16Bit) {
100 Data = _Sbfe(OpSize::i64Bit, IR::OpSizeAsBits(ReadWidth), 0, Data);
101 }
102 auto ConvertedData = _Float_FromGPR_S(OpSize::i64Bit, ReadWidth == OpSize::i32Bit ? OpSize::i32Bit : OpSize::i64Bit, Data);
103 _PushStack(ConvertedData, Data, ReadWidth, false);
104}
105
106void OpDispatchBuilder::FISTF64(OpcodeArgs, bool Truncate) {
107 const auto Size = OpSizeFromSrc(Op);

Callers

nothing calls this directly

Calls 1

OpSizeAsBitsFunction · 0.85

Tested by

no test coverage detected