Skip to content

FGETEXP

Operation

Converts the source encoding's signed exponent to the selected floating-point format.

Assembler Syntax

FGETEXP.{S|D}(z) <ea>(e), Fn(d)

FGETEXP.{S|D}(z) Fn(s), Fn(d)

Privilege

Unprivileged

Required CPUID flags

FP

Repeat eligibility

REP eligible

Derives a signed exponent from the selected source's exponent field and converts that integer to the selected floating-point destination format.

For S format, exponent field zero is treated as biased exponent one and the bias 127 is subtracted. For D format, exponent field zero is likewise treated as one and bias 1023 is subtracted. The resulting signed integer exponent is converted to the selected floating-point destination format. This rule gives zero and subnormal inputs the minimum normal exponent and leaves infinity and NaN encodings at the exponent produced by their all-ones field.

2.75in

Encodings

FGETEXP.{S|D}(z) <ea>(e), Fn(d)

Format: Instruction format for FGETEXP.{S|D}(z) <ea>(e), Fn(d)

Format: Instruction format for FGETEXP.{S|D}(z) <ea>(e), Fn(d)

2.75in FGETEXP.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FGETEXP.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FGETEXP.{S|D}(z) Fn(s), Fn(d)