no old filehtmldiff from-(new)

CFLT<cc> (register)

Compare registers and fault

This instruction compares the values in two registers, and generates a Conditional fault exception if the condition is true. This instruction does not affect the condition flags.

This instruction is used by the pseudo-instructions CFLTLE (register), CFLTLO (register), CFLTLS (register), and CFLTLT (register).

Fault
(FEAT_CFLT)

313029282726252423222120191817161514131211109876543210
sf1110110ccRm0000imm210000Rt

Encoding for the 32-bit greater than variant

Applies when (sf == 0 && cc == 000)

CFLTGT #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 32-bit greater than or equal variant

Applies when (sf == 0 && cc == 001)

CFLTGE #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 32-bit higher variant

Applies when (sf == 0 && cc == 010)

CFLTHI #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 32-bit higher or same variant

Applies when (sf == 0 && cc == 011)

CFLTHS #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 32-bit equal variant

Applies when (sf == 0 && cc == 110)

CFLTEQ #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 32-bit not equal variant

Applies when (sf == 0 && cc == 111)

CFLTNE #<reason>, <Wt|WSP>, <Wm|WSP>

Encoding for the 64-bit greater than variant

Applies when (sf == 1 && cc == 000)

CFLTGT #<reason>, <Xt|SP>, <Xm|SP>

Encoding for the 64-bit greater than or equal variant

Applies when (sf == 1 && cc == 001)

CFLTGE #<reason>, <Xt|SP>, <Xm|SP>

Encoding for the 64-bit higher variant

Applies when (sf == 1 && cc == 010)

CFLTHI #<reason>, <Xt|SP>, <Xm|SP>

Encoding for the 64-bit higher or same variant

Applies when (sf == 1 && cc == 011)

CFLTHS #<reason>, <Xt|SP>, <Xm|SP>

Encoding for the 64-bit equal variant

Applies when (sf == 1 && cc == 110)

CFLTEQ #<reason>, <Xt|SP>, <Xm|SP>

Encoding for the 64-bit not equal variant

Applies when (sf == 1 && cc == 111)

CFLTNE #<reason>, <Xt|SP>, <Xm|SP>

Decode for all variants of this encoding

if !IsFeatureImplemented(FEAT_CFLT) then EndOfDecode(Decode_UNDEF); end; let datasize : integer{} = 32 << UInt(sf); let t : integer = UInt(Rt); let m : integer = UInt(Rm); let reason : bits(16) = ZeroExtend{}(imm2); var cmp : CmpOp; var unsigned : boolean; case cc of when '000' => cmp = Cmp_GT; unsigned = FALSE; when '001' => cmp = Cmp_GE; unsigned = FALSE; when '010' => cmp = Cmp_GT; unsigned = TRUE; when '011' => cmp = Cmp_GE; unsigned = TRUE; when '110' => cmp = Cmp_EQ; unsigned = TRUE; when '111' => cmp = Cmp_NE; unsigned = TRUE; otherwise => EndOfDecode(Decode_UNDEF); end;

Assembler Symbols

<reason>

Is a 2-bit unsigned immediate, in the range 0 to 3, encoded in the "imm2" field.

<Wt|WSP>

Is the 32-bit name of the general-purpose register or stack pointer to be tested, encoded in the "Rt" field.

<Wm|WSP>

Is the 32-bit name of the second general-purpose source register or stack pointer, encoded in the "Rm" field.

<Xt|SP>

Is the 64-bit name of the general-purpose register or stack pointer to be tested, encoded in the "Rt" field.

<Xm|SP>

Is the 64-bit name of the second general-purpose source register or stack pointer, encoded in the "Rm" field.

Operation

CheckCFLTEnabled(); let operand1 : bits(datasize) = if t == 31 then SP{datasize}() else X{datasize}(t); let operand2 : bits(datasize) = if m == 31 then SP{datasize}() else X{datasize}(m); var cond : boolean; let value1 : integer = if unsigned then UInt(operand1) else SInt(operand1); let value2 : integer = if unsigned then UInt(operand2) else SInt(operand2); case cmp of when Cmp_EQ => cond = value1 == value2; when Cmp_NE => cond = value1 != value2; when Cmp_GT => cond = value1 > value2; when Cmp_GE => cond = value1 >= value2; end; if cond then let isflt : boolean = FALSE; AArch64_ConditionalFault(isflt, reason); end;


2026-09_rel 2026-09-21 14:22:38

Copyright © 2010-2026 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.

no old filehtmldiff from-(new)