You copied the Doc URL to your clipboard.

SSAT16

Parallel halfword Saturate.

Syntax

SSAT16{cond} Rd, #sat, Rn

where:

cond

is an optional condition code.

Rd

is the destination register.

sat

specifies the bit position to saturate to, in the range 1 to 16.

Rn

is the register holding the operand.

Operation

Halfword-wise signed saturation to any bit position.

The SSAT16 instruction saturates each signed halfword to the signed range –2sat–1x ≤ 2sat–1 –1.

Register restrictions

You cannot use PC for any operand.

You can use SP in A32 instructions but this is deprecated. You cannot use SP in T32 instructions.

Q flag

If saturation occurs on either halfword, this instruction sets the Q flag. To read the state of the Q flag, use an MRS instruction.

Availability

The 32-bit instruction is available in A32 and T32.

There is no 16-bit version of this instruction in T32.

Correct example

    SSAT16  r7, #12, r7

Incorrect example

    SSAT16  r1, #16, r2, LSL #4 ; shifts not permitted with halfword
                                ; saturations
Was this page helpful? Yes No