PPC: Use cr0 to check for optimized code

Result of `and` is stored in cr0.

Change-Id: I113ff7ceb9412d2f1f8ffdd58397123603b5818a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3600550
Reviewed-by: Junliang Yan <junyan@redhat.com>
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/main@{#80113}
This commit is contained in:
Milad Fa 2022-04-21 15:01:24 -04:00 committed by V8 LUCI CQ
parent 4a285a2549
commit 042ae2ca3c

View File

@ -1359,7 +1359,7 @@ static void LoadTieringStateAndJumpIfNeedsProcessing(
r0,
Operand(FeedbackVector::kHasOptimizedCodeOrTieringStateIsAnyRequestMask));
__ AndU32(r0, optimization_state, r0, SetRC);
__ bne(has_optimized_code_or_state);
__ bne(has_optimized_code_or_state, cr0);
}
#if ENABLE_SPARKPLUG