The Cortex-M4 Instruction Set
ARM DUI 0553A Copyright © 2010 ARM. All rights reserved. 3-99
ID121610 Non-Confidential
Examples
QADD16 R7, R4, R2 ; Adds halfwords of R4 with corresponding halfword of
; R2, saturates to 16 bits and writes to corresponding
; halfword of R7
QADD8 R3, R1, R6 ; Adds bytes of R1 to the corresponding bytes of R6,
; saturates to 8 bits and writes to corresponding byte of
; R3
QSUB16 R4, R2, R3 ; Subtracts halfwords of R3 from corresponding halfword
; of R2, saturates to 16 bits, writes to corresponding
; halfword of R4
QSUB8 R4, R2, R5 ; Subtracts bytes of R5 from the corresponding byte in
; R2, saturates to 8 bits, writes to corresponding byte of
; R4.