c.nop

Non-operation

This instruction is defined by:

Encoding

svg

Synopsis

C.NOP expands into addi x0, x0, imm.

Access

M

HS

U

VS

VU

Always

Always

Always

Always

Always

Decode Variables

Bits<6> imm = {$encoding[12], $encoding[6:2]};

Execution

  • Pruned, XLEN == 64

  • Original

if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
}