mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-10 15:42:56 +00:00
ir: Add opcode for floating-point GE and GT comparisons
The rest of the comparisons can be implemented in terms of these two
This commit is contained in:
@@ -1514,6 +1514,28 @@ U128 IREmitter::FPVectorEqual(size_t esize, const U128& a, const U128& b) {
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::FPVectorGreater(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::FPVectorGreater32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::FPVectorGreater64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::FPVectorGreaterEqual(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::FPVectorGreaterEqual32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::FPVectorGreaterEqual64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::FPVectorMul(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
|
||||
Reference in New Issue
Block a user