Index: runtime/vm/assembler_arm64.h |
diff --git a/runtime/vm/assembler_arm64.h b/runtime/vm/assembler_arm64.h |
index cde10dac4e529ea577cac9b1a6445a1bed009b64..cbeadfd80e1fa3b669cfd6ffb2fafefb6e0dbbf9 100644 |
--- a/runtime/vm/assembler_arm64.h |
+++ b/runtime/vm/assembler_arm64.h |
@@ -843,6 +843,18 @@ class Assembler : public ValueObject { |
EmitFPImm(FMOVDI, vd, imm8); |
return true; |
} |
+ void fmovsr(VRegister vd, Register rn) { |
+ ASSERT(rn != R31); |
+ ASSERT(rn != CSP); |
+ const Register crn = ConcreteRegister(rn); |
+ EmitFPIntCvtOp(FMOVSR, static_cast<Register>(vd), crn, kWord); |
+ } |
+ void fmovrs(Register rd, VRegister vn) { |
+ ASSERT(rd != R31); |
+ ASSERT(rd != CSP); |
+ const Register crd = ConcreteRegister(rd); |
+ EmitFPIntCvtOp(FMOVRS, crd, static_cast<Register>(vn), kWord); |
+ } |
void fmovdr(VRegister vd, Register rn) { |
ASSERT(rn != R31); |
ASSERT(rn != CSP); |