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

Method AVXVectorALUOp

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

Source from the content-addressed store, hash-verified

268}
269
270void OpDispatchBuilder::AVXVectorALUOp(OpcodeArgs, IROps IROp, IR::OpSize ElementSize) {
271 const auto Size = OpSizeFromSrc(Op);
272
273 Ref Src1 = LoadSource(FPRClass, Op, Op->Src[0], Op->Flags);
274 Ref Src2 = LoadSource(FPRClass, Op, Op->Src[1], Op->Flags);
275
276 DeriveOp(ALUOp, IROp, _VAdd(Size, ElementSize, Src1, Src2));
277
278 StoreResult(FPRClass, Op, ALUOp, OpSize::iInvalid);
279}
280
281void OpDispatchBuilder::AVXVectorXOROp(OpcodeArgs) {
282 // Special case for vector xor with itself being the optimal way for x86 to zero vector registers.

Callers

nothing calls this directly

Calls 1

DeriveOpFunction · 0.85

Tested by

no test coverage detected