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

Method FLD

FEXCore/Source/Interface/Core/OpcodeDispatcher/X87.cpp:61–71  ·  view source on GitHub ↗

Float LoaD operation with memory operand

Source from the content-addressed store, hash-verified

59
60// Float LoaD operation with memory operand
61void OpDispatchBuilder::FLD(OpcodeArgs, IR::OpSize Width) {
62 const auto ReadWidth = (Width == OpSize::f80Bit) ? OpSize::i128Bit : Width;
63
64 Ref Data = LoadSource_WithOpSize(FPRClass, Op, Op->Src[0], Width, Op->Flags);
65 Ref ConvertedData = Data;
66 // Convert to 80bit float
67 if (Width == OpSize::i32Bit || Width == OpSize::i64Bit) {
68 ConvertedData = _F80CVTTo(Data, ReadWidth);
69 }
70 _PushStack(ConvertedData, Data, ReadWidth, true);
71}
72
73// Float LoaD operation with memory operand
74void OpDispatchBuilder::FLDFromStack(OpcodeArgs) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected