121
32000D–04/2011
AVR32
9.3.14
Memory read-modify-write instructions
plsr.{b/h}
E
Rd, Rs, {sa}
Packed Logic Shift Right
See instruction set reference
1
pmax.{ub/sh}
E
Rd, Rx, Ry
Packed Maximum Value
See instruction set reference
1
pmin.{ub/sh}
E
Rd, Rx, Ry
Packed Minimum Value
See instruction set reference
1
psad
E
Rd, Rx, Ry
Sum of Absolute Differences
See instruction set reference
1
psub.{b/h}
E
Rd, Rx, Ry
Packed Subtraction
See instruction set reference
1
psubadd.h
E
Rd, Rx:<part>,
Ry:<part>
Packed Halfword Subtraction and
Addition
See instruction set reference
1
psubaddh.sh
E
Rd, Rx:<part>,
Ry:<part>
Packed Halfword Subtraction and
Addition with halving
See instruction set reference
1
psubadds.{uh/sh}
E
Rd, Rx:<part>,
Ry:<part>
Packed Halfword Subtraction and
Addition with Saturation
See instruction set reference
1
psubh.{ub/sh}
E
Rd, Rx, Ry
Packed Subtraction with halving
See instruction set reference
1
psubs.{ub/sb/uh/sh}
E
Rd, Rx, Ry
Packed Subtraction with Saturation
See instruction set reference
1
psubx.h
E
Rd, Rx, Ry
Packed Halfword Subtraction with
Crossed Operand
See instruction set reference
1
psubxh.sh
E
Rd, Rx, Ry
Packed Halfword Subtraction with
Crossed Operand and Halving
See instruction set reference
1
psubxs.{uh/sh}
E
Rd, Rx, Ry
Packed Halfword Subtraction with
Crossed Operand and Saturation
See instruction set reference
1
punpck{ub/sb}.h
E
Rd, Rs:<part>
Unpack Bytes to Halfwords
See instruction set reference
1
Table 9-15.
SIMD Operations (Continued)
Table 9-16.
Memory read-modify-write Instructions
Mnemonics
Operands / Syntax
Description
Operation
Rev
memc
E
imm, bp
Clear bit in memory
Memory[(imm15<<2)[bp5]] = 0
1
mems
E
imm, bp
Set bit in memory
Memory[(imm15<<2)[bp5]] = 1
1
memt
E
imm, bp
Toggle bit in memory
Memory[(imm15<<2)[bp5]] =
Memory[(imm15<<2)[bp5]]
1