Index: runtime/vm/intermediate_language_x64.cc |
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc |
index 7b65bb2e0f932a07724f07db6aa95b0958affae7..5dbe92ed630921ec498748b6429a32e6b246bcda 100644 |
--- a/runtime/vm/intermediate_language_x64.cc |
+++ b/runtime/vm/intermediate_language_x64.cc |
@@ -2006,6 +2006,22 @@ void UnboxedDoubleBinaryOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
} |
+LocationSummary* MathSqrtInstr::MakeLocationSummary() const { |
+ const intptr_t kNumInputs = 1; |
+ const intptr_t kNumTemps = 0; |
+ LocationSummary* summary = |
+ new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
+ summary->set_in(0, Location::RequiresXmmRegister()); |
+ summary->set_out(Location::RequiresXmmRegister()); |
+ return summary; |
+} |
+ |
+ |
+void MathSqrtInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
+ __ sqrtsd(locs()->out().xmm_reg(), locs()->in(0).xmm_reg()); |
+} |
+ |
+ |
LocationSummary* UnarySmiOpInstr::MakeLocationSummary() const { |
const intptr_t kNumInputs = 1; |
const intptr_t kNumTemps = 0; |