mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-23 18:00:47 +02:00
loopOp: Constant takes size in bits, not bytes
This commit is contained in:
1 parent
4b17521ab9
commit
e2fc0f03c9
1 file changed
+1
-1
@@ -724,7 +724,7 @@ void OpDispatchBuilder::LoopOp(OpcodeArgs) {
|
||||
uint64_t Target = Op->PC + Op->InstSize + Op->Src[1].TypeLiteral.Literal;
|
||||
|
||||
OrderedNode *CondReg = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags, -1);
|
||||
CondReg = _Sub(CondReg, _Constant(SrcSize, 1));
|
||||
CondReg = _Sub(CondReg, _Constant(SrcSize * 8, 1));
|
||||
StoreResult(GPRClass, Op, Op->Src[0], CondReg, -1);
|
||||
|
||||
SrcCond = _Select(FEXCore::IR::COND_NEQ,
|
||||
|
||||
Reference in new issue
Block a user