cfinv

Condition Flag Invert

CFINV

Inverts the C (Carry) flag.

Details

Inverts the Carry flag (C) in the condition flags register. This instruction is AArch64-only and requires the FEAT_FlagM extension. All other condition flags (N, Z, V) remain unchanged. The operation is not privileged.

Pseudocode Operation

C ← NOT C

Example

CFINV

Encoding

Binary Layout
1101010100000
000
0100
0000
000
11111
 
Format System
Opcode 0xD500401F
Extension FEAT_FlagM

Operands

Reference (Arm A64 ISA)

Instruction Forms

Encoding Instruction ISA Bit pattern
0xD500401F CFINV A64 1101010100000 | 000 | 0100 | 0000 | 000 | 11111

Description

Invert Carry Flag. This instruction inverts the value of the PSTATE.C flag.

Operation

PSTATE.C = NOT(PSTATE.C);