| Index: src/arm/assembler-arm.cc
|
| ===================================================================
|
| --- src/arm/assembler-arm.cc (revision 12559)
|
| +++ src/arm/assembler-arm.cc (working copy)
|
| @@ -110,6 +110,10 @@
|
| if (FLAG_enable_armv7) {
|
| supported_ |= 1u << ARMv7;
|
| }
|
| +
|
| + if (FLAG_enable_sudiv) {
|
| + supported_ |= 1u << SUDIV;
|
| + }
|
| #else // __arm__
|
| // Probe for additional features not already known to be available.
|
| if (!IsSupported(VFP3) && OS::ArmCpuHasFeature(VFP3)) {
|
| @@ -125,6 +129,10 @@
|
| found_by_runtime_probing_ |= 1u << ARMv7;
|
| }
|
|
|
| + if (!IsSupported(SUDIV) && OS::ArmCpuHasFeature(SUDIV)) {
|
| + found_by_runtime_probing_ |= 1u << SUDIV;
|
| + }
|
| +
|
| supported_ |= found_by_runtime_probing_;
|
| #endif
|
|
|
| @@ -1207,6 +1215,22 @@
|
| }
|
|
|
|
|
| +void Assembler::mls(Register dst, Register src1, Register src2, Register srcA,
|
| + Condition cond) {
|
| + ASSERT(!dst.is(pc) && !src1.is(pc) && !src2.is(pc) && !srcA.is(pc));
|
| + emit(cond | B22 | B21 | dst.code()*B16 | srcA.code()*B12 |
|
| + src2.code()*B8 | B7 | B4 | src1.code());
|
| +}
|
| +
|
| +
|
| +void Assembler::sdiv(Register dst, Register src1, Register src2,
|
| + Condition cond) {
|
| + ASSERT(!dst.is(pc) && !src1.is(pc) && !src2.is(pc));
|
| + emit(cond | B26 | B25| B24 | B20 | dst.code()*B16 | 0xf * B12 |
|
| + src2.code()*B8 | B4 | src1.code());
|
| +}
|
| +
|
| +
|
| void Assembler::mul(Register dst, Register src1, Register src2,
|
| SBit s, Condition cond) {
|
| ASSERT(!dst.is(pc) && !src1.is(pc) && !src2.is(pc));
|
|
|