IR: Implement FPVectorAdd

This commit is contained in:
MerryMage
2018-02-11 16:29:48 +00:00
parent 5f77ab28ee
commit 98c8e7d1af
4 changed files with 22 additions and 0 deletions

View File

@@ -1154,6 +1154,17 @@ U64 IREmitter::FPU32ToDouble(const U32& a, bool round_to_nearest, bool fpscr_con
return Inst<U64>(Opcode::FPU32ToDouble, a, Imm1(round_to_nearest));
}
U128 IREmitter::FPVectorAdd(size_t esize, const U128& a, const U128& b) {
switch (esize) {
case 32:
return Inst<U128>(Opcode::FPVectorAdd32, a, b);
case 64:
return Inst<U128>(Opcode::FPVectorAdd64, a, b);
}
UNREACHABLE();
return {};
}
U128 IREmitter::FPVectorSub(size_t esize, const U128& a, const U128& b) {
switch (esize) {
case 32: