ir: Add opcodes for performing vector absolute floating-point values

This will be usable for implementing FACGE and FACGT
This commit is contained in:
Lioncash
2018-07-06 21:55:42 -04:00
committed by MerryMage
parent 0bee648b4f
commit fc731dddae
4 changed files with 36 additions and 0 deletions

View File

@@ -1491,6 +1491,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::FPVectorAbs(size_t esize, const U128& a) {
switch (esize) {
case 32:
return Inst<U128>(Opcode::FPVectorAbs32, a);
case 64:
return Inst<U128>(Opcode::FPVectorAbs64, a);
}
UNREACHABLE();
return {};
}
U128 IREmitter::FPVectorAbsoluteDifference(size_t esize, const U128& a, const U128& b) {
switch (esize) {
case 32: