mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 22:50:46 -07:00
Implement LEA.HI shader instruction (#1609)
This commit is contained in:
@ -100,5 +100,15 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
||||
context.Copy(GetNF(), context.FPCompareLess (dest, zero, fpType));
|
||||
}
|
||||
}
|
||||
|
||||
public static Operand AddWithCarry(EmitterContext context, Operand lhs, Operand rhs, out Operand carryOut)
|
||||
{
|
||||
Operand result = context.IAdd(lhs, rhs);
|
||||
|
||||
// C = Rd < Rn
|
||||
carryOut = context.INegate(context.ICompareLessUnsigned(result, lhs));
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user