Skip to content

Commit

Permalink
[mips][compiler] Inline 64bit immediates and RPO numbers in Instructi…
Browse files Browse the repository at this point in the history
…onOperand

Port: 950b281

Change-Id: I77f9389d1dfeaccccad533aa1d7bf41f913e6ae3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2790502
Reviewed-by: Zhao Jiazhong <[email protected]>
Commit-Queue: Zhao Jiazhong <[email protected]>
Auto-Submit: Liu yu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#73700}
  • Loading branch information
LiuYu396 authored and Commit Bot committed Mar 29, 2021
1 parent b6df18e commit 3fc2ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/backend/mips/instruction-selector-mips.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
MipsOperandGenerator g(this);
Emit(kMipsFloat64InsertLowWord32, g.DefineAsRegister(node),
ImmediateOperand(ImmediateOperand::INLINE, 0),
ImmediateOperand(ImmediateOperand::INLINE_INT32, 0),
g.UseRegister(node->InputAt(0)));
}

Expand Down
2 changes: 1 addition & 1 deletion src/compiler/backend/mips64/instruction-selector-mips64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
Mips64OperandGenerator g(this);
Emit(kMips64Float64InsertLowWord32, g.DefineAsRegister(node),
ImmediateOperand(ImmediateOperand::INLINE, 0),
ImmediateOperand(ImmediateOperand::INLINE_INT32, 0),
g.UseRegister(node->InputAt(0)));
}

Expand Down

0 comments on commit 3fc2ee9

Please sign in to comment.