Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

psad Rd, Rx, Ry

Rd    =  | Rx[31:24] - Ry[31:24] | + | Rx[23:16] - Ry[23:16] | +
      | Rx[15:8] - Ry[15:8] | + | Rx[7:0] - Ry[7:0] |;
{d, x, y} ∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

001001000000

Rd

3

4

5

4

12

4

Description

Compute the Sum of Absolute Differences (SAD) of four pairs of packed unsigned bytes from the source registers and store the result in the destination register.

Status Flags:

Q:

Not affected.

V:

Not affected.

N:

Not affected.

Z:

Not affected.

C:

Not affected.