Test bit and fault if nonzero
This instruction compares the value of a bit in a general-purpose register with zero, and conditionally generates a Conditional fault exception if the comparison is not equal. This instruction does not affect condition flags.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| b5 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | b40 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | imm2 | 1 | 0 | 0 | 1 | 1 | Rt | |||||||||
| op | |||||||||||||||||||||||||||||||
if !IsFeatureImplemented(FEAT_CFLT) then EndOfDecode(Decode_UNDEF); end; let datasize : integer{} = 32 << UInt(b5); let t : integer = UInt(Rt); let bit_pos : integer = UInt(b5::b40); let reason : bits(16) = ZeroExtend{}(imm2);
| <reason> |
Is a 2-bit unsigned immediate, in the range 0 to 3, encoded in the "imm2" field. |
| <R> |
Is a width specifier,
encoded in
|
| <t> |
Is the number [0-30] of the general-purpose register to be tested or the name ZR (31), encoded in the "Rt" field. |
| <imm> |
Is the bit number to be tested, in the range 0 to 63, encoded in "b5:b40". |
CheckCFLTEnabled(); let operand : bits(datasize) = X{}(t); if operand[bit_pos] != '0' then let isflt : boolean = FALSE; AArch64_ConditionalFault(isflt, reason); end;
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.