mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-18 22:42:58 +00:00
IR: Add IR instruction ZeroVector
This commit is contained in:
@@ -1207,4 +1207,10 @@ void EmitX64::EmitVectorZeroUpper(EmitContext& ctx, IR::Inst* inst) {
|
||||
ctx.reg_alloc.DefineValue(inst, a);
|
||||
}
|
||||
|
||||
void EmitX64::EmitZeroVector(EmitContext& ctx, IR::Inst* inst) {
|
||||
Xbyak::Xmm a = ctx.reg_alloc.ScratchXmm();
|
||||
code.pxor(a, a);
|
||||
ctx.reg_alloc.DefineValue(inst, a);
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::BackendX64
|
||||
|
||||
Reference in New Issue
Block a user