FPCompareEQ

ScarletNX's fixup nx.sail

The comparisons' answers are those of FPCompare's flags, which raises the exceptions theirs do (a signalling NaN's Invalid Operation in an equality, any NaN's in the others): equal 0110, less 1000, greater 0010, unordered 0011

val FPCompareEQ : forall 'N, 'N in {16, 32, 64}. (bits('N), bits('N), FPCRType) -> bool

function FPCompareEQ (op1, op2, fpcr) = FPCompare(op1, op2, false, fpcr)[2 .. 2] == 0b1

Used by


Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.