Skip to content

ABS

Operation

Replaces the destination with its selected-width two's-complement absolute value.

Assembler Syntax

ABS.{L|Q}(z) Rn(r)

ABS.{B|W|L|Q}(z) <ea>(e)

Privilege

Unprivileged

Repeat eligibility

REP eligible; REPcc observes dst

Replaces the selected-width destination value with its two's-complement absolute value. The most-negative value wraps to itself and does not trap. A sub-Q Rn result is sign-extended to 64 bits.

2.75in

Encodings

ABS.{L|Q}(z) Rn(r)

Format: Instruction format for ABS.{L|Q}(z) Rn(r)

Format: Instruction format for ABS.{L|Q}(z) Rn(r)

2.75in ABS.{B|W|L|Q}(z) <ea>(e)

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

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

dstexcluded: immediate [invalid_destination]