mfvsrwz
Move From VSR Word and Zero
mfvsrwz RA, XS
Moves the contents of a word element from a vector-scalar register to a general-purpose register, zeroing the upper bits.
Encoding
Binary Layout
31
0:5
XS
6:10
RA
11:15
0
16:20
115
21:31
Operands
-
RA
Target GPR -
XS
Source VSR
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
The contents of word element 1 of VSR[XS] are placed into bits 32:63 of GPR[RA]. The contents of bits 0:31 of GPR[RA] are set to 0. Let XS be the value 32×SX + S.
Operation
if SX=0 & MSR.FP=0 then FP_Unavailable()
if SX=1 & MSR.VEC=0 then Vector_Unavailable()
GPR[RA] ←EXTZ64(VSR[32×SX+S].word[1])
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
| mffprwz | |
| mfvrwz |
Programming Note
For SX=0, mfvsrwz is treated as a Floating-Point instruction in terms of resource availability.
For SX=1, mfvsrwz is treated as a Vector instruction in terms of resource availability.