| Index: src/x64/macro-assembler-x64.cc
|
| ===================================================================
|
| --- src/x64/macro-assembler-x64.cc (revision 2836)
|
| +++ src/x64/macro-assembler-x64.cc (working copy)
|
| @@ -597,18 +597,9 @@
|
|
|
|
|
| void MacroAssembler::FCmp() {
|
| - fcompp();
|
| - push(rax);
|
| - fnstsw_ax();
|
| - if (CpuFeatures::IsSupported(CpuFeatures::SAHF)) {
|
| - sahf();
|
| - } else {
|
| - shrl(rax, Immediate(8));
|
| - and_(rax, Immediate(0xFF));
|
| - push(rax);
|
| - popfq();
|
| - }
|
| - pop(rax);
|
| + fucomip();
|
| + ffree(0);
|
| + fincstp();
|
| }
|
|
|
|
|
|
|