NGC

Negate with carry

This instruction negates the sum of a register value and the value of NOT (Carry flag), and writes the result to the destination register.

Encoding: Not setting the condition flags

313029282726252423222120191817161514131211109876543210
101101000000000011111
sfopSRmRnRd

32-bit (sf == 0)

NGC <Wd>, <Wm>

Equivalent to: SBC <Wd>, WZR, <Wm>

64-bit (sf == 1)

NGC <Xd>, <Xm>

Equivalent to: SBC <Xd>, XZR, <Xm>

Explanations

<Wd>: Is the 32-bit name of the general-purpose destination register, encoded in the "Rd" field.
<Wm>: Is the 32-bit name of the general-purpose source register, encoded in the "Rm" field.
<Xd>: Is the 64-bit name of the general-purpose destination register, encoded in the "Rd" field.
<Xm>: Is the 64-bit name of the general-purpose source register, encoded in the "Rm" field.

Operational Notes

If PSTATE.DIT is 1: