SMAXQV

Signed maximum reduction of quadword vector segments

This instruction determines the signed maximum of the elements in the same position from each 128-bit source vector segment, and places each result into the corresponding element of the 128-bit SIMD&FP destination register. Inactive elements in the source vector are treated as the minimum signed integer for the element size.

SVE2
(FEAT_SVE2p1 || FEAT_SME2p1)

313029282726252423222120191817161514131211109876543210
00000100size001100001PgZnVd
opU

Encoding

SMAXQV <Vd>.<T>, <Pg>, <Zn>.<Tb>

Decode for this encoding

if !IsFeatureImplemented(FEAT_SVE2p1) && !IsFeatureImplemented(FEAT_SME2p1) then EndOfDecode(Decode_UNDEF); end; let esize : integer{} = 8 << UInt(size); let g : integer = UInt(Pg); let n : integer = UInt(Zn); let d : integer = UInt(Vd); let unsigned : boolean = FALSE;

Assembler Symbols

<Vd>

Is the name of the destination SIMD&FP register, encoded in the "Vd" field.

<T>

Is an arrangement specifier, encoded in size:

size <T>
00 16B
01 8H
10 4S
11 2D
<Pg>

Is the name of the governing scalable predicate register P0-P7, encoded in the "Pg" field.

<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 B
01 H
10 S
11 D

Operation

CheckSVEEnabled(); let VL : integer{} = CurrentVL(); let PL : integer{} = VL DIV 8; let segments : integer = VL DIV 128; let elempersegment : integer = 128 DIV esize; let mask : bits(PL) = P{}(g); let operand : bits(VL) = if AnyActiveElement{PL}(mask, esize) then Z{VL}(n) else Zeros{VL}; var result : bits(128) = Zeros{}; var stmp : bits(128) = Zeros{}; var dtmp : integer; for e = 0 to elempersegment-1 do dtmp = if unsigned then 0 else -(2^(esize-1)); for s = 0 to segments-1 do if ActivePredicateElement{PL}(mask, s * elempersegment + e, esize) then stmp = operand[s*:128]; dtmp = Max(dtmp, SInt(stmp[e*:esize])); end; end; result[e*:esize] = dtmp[esize-1:0]; end; V{128}(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.