Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

packw.sh Rd, Rx, Ry

Rd[31:16] = SATS(Rx, 16); 
Rd[15:0] = SATS(Ry, 16); 
{d, x, y} ∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

001001000111

Rd

3

4

5

4

12

4

Description

Pack the two words given in the source registers into two halfwords in the destination register. Each of the words are saturated to signed halfwords before being packed.

Status Flags:

Q:

Flag set if saturation occured in one or more of the partial operations.

V:

Not affected.

N:

Not affected.

Z:

Not affected.

C:

Not affected.