mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-07 18:58:29 +02: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