18.2 FABS (scalar)

Floating-point Absolute value (scalar).

Syntax

FABS Hd, Hn ; Half-precision

FABS Sd, Sn ; Single-precision

FABS Dd, Dn ; Double-precision

Where:

Hd
Is the 16-bit name of the SIMD and FP destination register.
Hn
Is the 16-bit name of the SIMD and FP source register.
Sd
Is the 32-bit name of the SIMD and FP destination register.
Sn
Is the 32-bit name of the SIMD and FP source register.
Dd
Is the 64-bit name of the SIMD and FP destination register.
Dn
Is the 64-bit name of the SIMD and FP source register.

Operation

Floating-point Absolute value (scalar). This instruction calculates the absolute value in the SIMD and FP source register and writes the result to the SIMD and FP destination register.

Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.

Vd = abs(Vn).

Non-ConfidentialPDF file icon PDF versionDUI0801J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.