Skip to content

FTEST

Operation

Compares a floating-point source with positive zero and writes integer condition flags.

Assembler Syntax

FTEST.{S|D}(z) <ea>(e)

FTEST.{S|D}(z) Fn(s)

Privilege

Unprivileged

Required CPUID flags

FP

Repeat eligibility

REP eligible

Compares the selected-format operand with positive zero and writes FLAGS.Z, FLAGS.N, FLAGS.C, and FLAGS.V as greater=0000, equal=1000, less=0110, or unordered=0001. A quiet NaN is unordered; a signaling NaN is unordered and generates NV.

2.75in

Encodings

FTEST.{S|D}(z) <ea>(e)

Format: Instruction format for FTEST.{S|D}(z) <ea>(e)

Format: Instruction format for FTEST.{S|D}(z) <ea>(e)

2.75in FTEST.{S|D}(z) Fn(s)

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

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