Commit b77ff66b authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc64: [baseline] fix condition register

Change-Id: Ia6f542104887624d80eebd309f16b7da94159fc4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3679978Reviewed-by: 's avatarMilad Farazmand <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#80861}
parent 2bdd845a
......@@ -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,
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment