mtpmr

Move To Performance Monitor Register

mtpmr PMRN, RS

Writes a performance monitor register (Embedded).

Encoding

Binary Layout
31
0:5
RS
6:10
PMRN
11:15
462
16:20
/
21:31
 
Format X-form
Opcode 0x7C00039E
Extension Embedded

Operands

  • PMRN
    Register Num
  • RS
    Source

Example

mtpmr 0, r3

Related

More in Embedded

Reference

Description

Moves a value from the general-purpose register RS into the performance monitor register identified by PMRN. This instruction is available only in embedded Power ISA implementations with performance monitoring support and typically requires supervisor privilege. No condition flags are affected.

Operation

PMR[PMRN] ← RS