| Index: src/compiler/x87/instruction-selector-x87.cc
|
| diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc
|
| index 2051b147bb099fee90f57d33e871fefcf74f0c72..ac868fb932b71adbcb60bf514db72c4f3b39bc18 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -665,12 +665,15 @@ void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) {
|
|
|
|
|
| void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
|
| - UNIMPLEMENTED();
|
| + X87OperandGenerator g(this);
|
| + Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
|
| + Emit(kX87BitcastFI, g.DefineAsRegister(node), 0, NULL);
|
| }
|
|
|
|
|
| void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
|
| - UNIMPLEMENTED();
|
| + X87OperandGenerator g(this);
|
| + Emit(kX87BitcastIF, g.DefineAsFixed(node, stX_0), g.Use(node->InputAt(0)));
|
| }
|
|
|
|
|
|
|