compact

SVE Compact Vector

COMPACT <Zd>.<T>, <Pg>, <Zn>.<T>

Packs active elements to the bottom of the vector.

Details

The SVE Compact Vector instruction packs active elements to the bottom of the vector.

Pseudocode Operation

// Packs active elements to the bottom of the vector

Example

COMPACT z0.s.T, p0/m, z1.s.T

Encoding

Binary Layout
00000101
sz
100001
Pg
Zn
Zd
 
Format SVE Permute
Opcode 0x05610000
Extension SVE

Operands

  • Zd
    Destination scalable vector register (SVE)
  • Pg
    Mask
  • Zn
    First source scalable vector register (SVE)