Arm cortex-M instructions

Source: Internet
Author: User
Tags mul
Arm cortex-M Instruction Sets
Thumb Thumb-2 Hardware
Floating-point Arm
Most Subset 1 or 32 cycle No No No No ARMv6-M
Von norann
Cortex-M0 +
Most Subset 1 or 32 cycle No No No No ARMv6-M
Von norann
Most Subset 3 or 33 cycle No No No No ARMv6-M
Von norann
Entire Entire 1 cycle Yes Yes No No ARMv7-M
Entire Entire 1 cycle Yes Yes Yes Optional ARMv7E-M
Cortex-M4F Entire Entire 1 cycle Yes Yes Yes Yes ARMv7E-M Harvard

Note: The Cortex-M0/M0 +/M1 doesn't include theseThumbInstructions:
CBZ, cbnz, it; nor does it include a divide instruction.

Note: The Cortex-M0/M0 +/M1 only include theseThumb-2Instructions:

Note: If a smaller silicon die size is required, the Cortex-M0/M0 +/M1
Can implement a smaller and slower multiply instruction.

All four cortex-m cores implement a common instruction subset that consists:

Thumb subset, thumb-2 subset, and multiply.

The Cortex-M0/M0 +/M1 include all older thumb instructions,
Using t new instructions (CBZ, cbnz, It) which were added in ARMv7-M architecture.

The Cortex-M0/M0 +/M1 include a minor subset of thumb-2 instructions
(BL, DMB, DSB, ISB, Mrs, MSR ).

The Cortex-M0/M0 +/M1 were designed to be the smallest size possible,
Thus having the fewest instructions of the cortex-M family.

The Cortex-M3 adds 3 thumb instructions and all thumb-2 instructions,
Plus a 10-12 cycle hardware divide and saturated math instructions.

The Cortex-M4 adds DSP instructions and an optional single-precisionfloating-point unit.

If the Cortex-M4 has the floating point unit, then it is known as the Cortex-M4F.

Arm cortex-M instructions
Instructions Instruction
M0 +
ADC, add, ADR, And, ASR, B, Bic, bkpt, blx, BX, CEN, CMP, CPS, EOR, LDM, LDR, ldrb, ldrh, ldrsb, ldrsh, LSL, LSR, mov, Mul, MVN, NOP, Orr, Pop, push, Rev, rev16, revsh, Ror, RSB, SBC, SEV, STM, stmia, STR, strb, strh, sub, SVC, sxtb, sxth, TST, uxtb, uxth, WFE, WFI, yield 16-bit Yes Yes Yes Yes Yes Yes
BL, DMB, DSB, ISB, Mrs, MSR 32-bit Yes Yes Yes Yes Yes Yes
Cbnz, CBZ, it 16-bit No No No Yes Yes Yes
ADC, add, ADR, And, ASR, B, BFC, BFI, Bic, CDP, clrex, clz, CEN, CMP, dbg, EOR, LDC, ldma, ldmdb, LDR, ldrb, ldrbt, ldrd, ldrex, ldrexb, ldrexh, ldrh, ldrht, ldrsb, ldrsbt, cosine, ldrsh, ldrt, MCR, LSL, LSR, MLS, mcrr, MLA, mov, movt, MRC, mrrc, Mul, MVN, NOP, ORN, Orr, PLD, pldw, PLI, Pop, push, rbit, Rev, rev16, revsh, Ror, rrx, RSB, SBC, sbfx, sdiv, SEV, smlal, smull, SSAT, STC, analytic dB, STR, strb, strbt, strd, strex, strexb, strexh, strh, strht, strt, sub, sxtb, sxth, TBB, tbh, TEQ, TST, ubfx, udiv, umlal, umull, usat, uxtb, uxth, WFE, WFI, yield 32-bit No No No Yes Yes Yes
PKH, qadd, qadd16, qadd8, limit, qdadd, qdsub, qsax, qsub, qsub16, qsub8, sadd16, sadd8, sasx, Sel, shadd16, shadd8, shasx, shsax, shsub16, shsub8, smlabb, smlabt, smlatb, smlatt, smglad, small, smlald, smlawb, smlawt, smlsd, small, smmla, smmls, smmul, smuad, smulbb, smulbt, smultt, smultb, smulwt, smulwb, smusd, ssat16, ssax, ssub16, ssub8, sxtab, sxtab16, cosine, sxtb16, uadd16, uadd8, cosine, uhasx, uhsax, uhsub16, uhsub8, umaal, uqadd16, Baidu, Baidu, uqsax, Baidu, Baidu, usad8, usada8, usat16, usax, usub16, usub8, uxtab, uxtab16, uxtah, ux16 32-bit No No No No Yes Yes
Vabs, vadd, vcmp, vcmpe, vcvt, vcvtr, vdiv, vldm, vldr, vmla, vmls, vmov, vmrs, vmsr, vmul, vneg, vnmla, vnmls, ingress, vpop, vpush, vsqrt, vstm, vstr, vsub 32-bit No No No No No Yes

Arm cortex-M instructions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.