mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-26 04:16:18 +00:00
hotfix: 64-bit shift fixups
This commit is contained in:
parent
9dcf40e261
commit
4d12de8149
7 changed files with 27 additions and 29 deletions
|
@ -1461,8 +1461,18 @@ U1 IREmitter::IGreaterThan(const U32& lhs, const U32& rhs, bool is_signed) {
|
|||
return Inst<U1>(is_signed ? Opcode::SGreaterThan : Opcode::UGreaterThan, lhs, rhs);
|
||||
}
|
||||
|
||||
U1 IREmitter::INotEqual(const U32& lhs, const U32& rhs) {
|
||||
return Inst<U1>(Opcode::INotEqual, lhs, rhs);
|
||||
U1 IREmitter::INotEqual(const U32U64& lhs, const U32U64& rhs) {
|
||||
if (lhs.Type() != rhs.Type()) {
|
||||
UNREACHABLE_MSG("Mismatching types {} and {}", lhs.Type(), rhs.Type());
|
||||
}
|
||||
switch (lhs.Type()) {
|
||||
case Type::U32:
|
||||
return Inst<U1>(Opcode::INotEqual32, lhs, rhs);
|
||||
case Type::U64:
|
||||
return Inst<U1>(Opcode::INotEqual64, lhs, rhs);
|
||||
default:
|
||||
ThrowInvalidType(lhs.Type());
|
||||
}
|
||||
}
|
||||
|
||||
U1 IREmitter::IGreaterThanEqual(const U32& lhs, const U32& rhs, bool is_signed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue