ir: Add opcode to perform the vector conversion S64->F64

Unfortunately x86 prior to AVX-512 doesn't really give us any convenient instruction to do the work for us
This commit is contained in:
Lioncash 2018-05-08 11:18:13 -04:00 committed by MerryMage
parent 0e61ee6bf6
commit 3f6c529da2
4 changed files with 47 additions and 0 deletions

View file

@ -1488,6 +1488,10 @@ U128 IREmitter::FPVectorS32ToSingle(const U128& a) {
return Inst<U128>(Opcode::FPVectorS32ToSingle, a);
}
U128 IREmitter::FPVectorS64ToDouble(const U128& a) {
return Inst<U128>(Opcode::FPVectorS64ToDouble, a);
}
void IREmitter::Breakpoint() {
Inst(Opcode::Breakpoint);
}

View file

@ -274,6 +274,7 @@ public:
U128 FPVectorMul(size_t esize, const U128& a, const U128& b);
U128 FPVectorSub(size_t esize, const U128& a, const U128& b);
U128 FPVectorS32ToSingle(const U128& a);
U128 FPVectorS64ToDouble(const U128& a);
void Breakpoint();

View file

@ -392,6 +392,7 @@ OPCODE(FPVectorDiv64, T::U128, T::U128, T::U
OPCODE(FPVectorMul32, T::U128, T::U128, T::U128 )
OPCODE(FPVectorMul64, T::U128, T::U128, T::U128 )
OPCODE(FPVectorS32ToSingle, T::U128, T::U128 )
OPCODE(FPVectorS64ToDouble, T::U128, T::U128 )
OPCODE(FPVectorSub32, T::U128, T::U128, T::U128 )
OPCODE(FPVectorSub64, T::U128, T::U128, T::U128 )