UUNPKHI, UUNPKLO

Unsigned unpack and extend half of vector

This instruction unpacks and zero-extends elements from the lowest or highest half of the source vector, and writes the zero-extended values into double-width elements of the destination vector. This instruction is unpredicated.

It has encodings from 2 classes: High half and Low half

High half
(FEAT_SVE || FEAT_SME)

313029282726252423222120191817161514131211109876543210
00000101size110011001110ZnZd
UH

Encoding

UUNPKHI <Zd>.<T>, <Zn>.<Tb>

Decode for this encoding

if !IsFeatureImplemented(FEAT_SVE) && !IsFeatureImplemented(FEAT_SME) then EndOfDecode(Decode_UNDEF); end; if size == '00' then EndOfDecode(Decode_UNDEF); end; let esize : integer{} = 8 << UInt(size); let n : integer = UInt(Zn); let d : integer = UInt(Zd); let unsigned : boolean = TRUE; let hi : boolean = TRUE;

Low half
(FEAT_SVE || FEAT_SME)

313029282726252423222120191817161514131211109876543210
00000101size110010001110ZnZd
UH

Encoding

UUNPKLO <Zd>.<T>, <Zn>.<Tb>

Decode for this encoding

if !IsFeatureImplemented(FEAT_SVE) && !IsFeatureImplemented(FEAT_SME) then EndOfDecode(Decode_UNDEF); end; if size == '00' then EndOfDecode(Decode_UNDEF); end; let esize : integer{} = 8 << UInt(size); let n : integer = UInt(Zn); let d : integer = UInt(Zd); let unsigned : boolean = TRUE; let hi : boolean = FALSE;

Assembler Symbols

<Zd>

Is the name of the destination scalable vector register, encoded in the "Zd" field.

<T>

Is the size specifier, encoded in size:

size <T>
00 RESERVED
01 H
10 S
11 D
<Zn>

Is the name of the source scalable vector register, encoded in the "Zn" field.

<Tb>

Is the size specifier, encoded in size:

size <Tb>
00 RESERVED
01 B
10 H
11 S

Operation

CheckSVEEnabled(); let VL : integer{} = CurrentVL(); let elements : integer = VL DIV esize; let hsize : integer{} = esize DIV 2; let offset : integer = if hi then elements else 0; let operand : bits(VL) = Z{}(n); var result : bits(VL); for e = 0 to elements-1 do let element : bits(hsize) = operand[(e + offset)*:hsize]; result[e*:esize] = Extend{esize}(element, unsigned); end; Z{VL}(d) = result;

Operational information

This instruction is a data-independent-time instruction as described in About PSTATE.DIT.


2026-03_rel 2026-03-26 20:48:11

Copyright © 2010-2026 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.