ppc64: [baseline] fix condition register

Change-Id: Ia6f542104887624d80eebd309f16b7da94159fc4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3679978
Reviewed-by: Milad Farazmand <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#80861}
This commit is contained in:
Junliang Yan 2022-05-31 09:25:47 -04:00 committed by V8 LUCI CQ
parent 2bdd845a7c
commit b77ff66b4c
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ void BaselineAssembler::TestAndBranch(Register value, int mask, Condition cc,
Label* target, Label::Distance) {
ASM_CODE_COMMENT(masm_);
__ AndU64(r0, value, Operand(mask), ip, SetRC);
__ b(AsMasmCondition(cc), target);
__ b(AsMasmCondition(cc), target, cr0);
}
void BaselineAssembler::JumpIf(Condition cc, Register lhs, const Operand& rhs,

View File

@ -75,8 +75,8 @@ void BaselineCompiler::PrologueFillFrame() {
for (int i = 0; i < kLoopUnrollSize; ++i) {
__ Push(kInterpreterAccumulatorRegister);
}
__ masm()->SubS64(scratch, scratch, Operand(1));
__ masm()->b(gt, &loop);
__ masm()->SubS64(scratch, scratch, Operand(1), r0, LeaveOE, SetRC);
__ masm()->bgt(&loop, cr0);
}
}