Skip to content

MAXS

Operation

Writes the signed greater of source and destination to the destination.

Assembler Syntax

MAXS.{B|W|L|Q}(z) <ea>(e), Rn(d)

MAXS.{B|W|L|Q}(z) Rn(s), <ea>(e)

MAXS.{B|W|L|Q}(z) Rn(s), Rn(d)

Privilege

Unprivileged

Repeat eligibility

REP eligible; REPcc observes dst

Compares the selected-width operands as signed integers and writes the greater value to the destination. A sub-Q Rn result is sign-extended to 64 bits.

2.75in

Encodings

MAXS.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for MAXS.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for MAXS.{B|W|L|Q}(z) <ea>(e), Rn(d)

2.75in MAXS.{B|W|L|Q}(z) Rn(s), <ea>(e)

Format: Instruction format for MAXS.{B|W|L|Q}(z) Rn(s), <ea>(e)

Format: Instruction format for MAXS.{B|W|L|Q}(z) Rn(s), <ea>(e)

dstexcluded: immediate [invalid_destination]

2.75in MAXS.{B|W|L|Q}(z) Rn(s), Rn(d)

Format: Instruction format for MAXS.{B|W|L|Q}(z) Rn(s), Rn(d)

Format: Instruction format for MAXS.{B|W|L|Q}(z) Rn(s), Rn(d)