mtsrin

Move To Segment Register Indirect

mtsrin RS, RB

Indirect write of segment register using RB.

Details

Move the contents of GPR RS into the segment register selected by bits 0–3 of GPR RB. This is an indirect write of the 32-bit segment register and is not available in 64-bit mode. No status fields are affected.

Pseudocode Operation

SR_index ← RB[0:3]
SR[SR_index] ← RS[32:63]

Example

mtsrin r3, r5

Encoding

Binary Layout
31
0
RS
6
/
11
RB
16
242
21
/
31
 
Format X-form
Opcode 0x7C0001E6
Extension Base

Operands

  • RS
    Source
  • RB
    Effective Addr