Skip to content

FCMP

Operation

Compares two floating-point operands and writes their relation to integer condition flags.

Assembler Syntax

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

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

Privilege

Unprivileged

Required CPUID flags

FP

Repeat eligibility

REP eligible

Compares the selected-format operands 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

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

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

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

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

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

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