Commit 1c6e8f93 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64] Fix 'Debug check failed: op->IsAnyLocationOperand().'

Bug: v8:12151

Change-Id: I51a6ebc1fb94b62acdc018cfcf6fed498f1c9d21
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3139576
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Reviewed-by: 's avatarJi Qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#76638}
parent 02d8b8a9
......@@ -1951,7 +1951,7 @@ void AssembleBranchToLabels(CodeGenerator* gen, TurboAssembler* tasm,
cc = FlagsConditionToConditionCmp(condition);
if (i.InputOrZeroRegister(0) == zero_reg && IsInludeEqual(cc)) {
__ Branch(tlabel);
} else {
} else if (i.InputOrZeroRegister(0) != zero_reg) {
__ Branch(tlabel, cc, i.InputRegister(0), Operand(zero_reg));
}
} else if (instr->arch_opcode() == kArchStackPointerGreaterThan) {
......
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