Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index a4647096084b9476012b59a2afe6ef80fd9b5927..c572b747df6cf408169b7c432fdfca22945c2314 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -3362,6 +3362,20 @@ void Assembler::vmrs(Register dst, Condition cond) { |
} |
+void Assembler::vrinta(const SwVfpRegister dst, const SwVfpRegister src) { |
+ // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
+ // 10(19-18) | RM=00(17-16) | Vd(15-12) | 101(11-9) | sz=0(8) | 01(7-6) | |
+ // M(5) | 0(4) | Vm(3-0) |
+ DCHECK(CpuFeatures::IsSupported(ARMv8)); |
+ int vd, d; |
+ dst.split_code(&vd, &d); |
+ int vm, m; |
+ src.split_code(&vm, &m); |
+ emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | vd * B12 | |
+ 0x5 * B9 | B6 | m * B5 | vm); |
+} |
+ |
+ |
void Assembler::vrinta(const DwVfpRegister dst, const DwVfpRegister src) { |
// cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
// 10(19-18) | RM=00(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | |
@@ -3376,6 +3390,20 @@ void Assembler::vrinta(const DwVfpRegister dst, const DwVfpRegister src) { |
} |
+void Assembler::vrintn(const SwVfpRegister dst, const SwVfpRegister src) { |
+ // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
+ // 10(19-18) | RM=01(17-16) | Vd(15-12) | 101(11-9) | sz=0(8) | 01(7-6) | |
+ // M(5) | 0(4) | Vm(3-0) |
+ DCHECK(CpuFeatures::IsSupported(ARMv8)); |
+ int vd, d; |
+ dst.split_code(&vd, &d); |
+ int vm, m; |
+ src.split_code(&vm, &m); |
+ emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x1 * B16 | |
+ vd * B12 | 0x5 * B9 | B6 | m * B5 | vm); |
+} |
+ |
+ |
void Assembler::vrintn(const DwVfpRegister dst, const DwVfpRegister src) { |
// cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | |
// 10(19-18) | RM=01(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | |
@@ -3446,6 +3474,20 @@ void Assembler::vrintm(const DwVfpRegister dst, const DwVfpRegister src) { |
} |
+void Assembler::vrintz(const SwVfpRegister dst, const SwVfpRegister src, |
+ const Condition cond) { |
+ // cond(31-28) | 11101(27-23)| D(22) | 11(21-20) | 011(19-17) | 0(16) | |
+ // Vd(15-12) | 101(11-9) | sz=0(8) | op=1(7) | 1(6) | M(5) | 0(4) | Vm(3-0) |
+ DCHECK(CpuFeatures::IsSupported(ARMv8)); |
+ int vd, d; |
+ dst.split_code(&vd, &d); |
+ int vm, m; |
+ src.split_code(&vm, &m); |
+ emit(cond | 0x1D * B23 | d * B22 | 0x3 * B20 | 0x3 * B17 | vd * B12 | |
+ 0x5 * B9 | B7 | B6 | m * B5 | vm); |
+} |
+ |
+ |
void Assembler::vrintz(const DwVfpRegister dst, const DwVfpRegister src, |
const Condition cond) { |
// cond(31-28) | 11101(27-23)| D(22) | 11(21-20) | 011(19-17) | 0(16) | |