lq (Load Quad Word) instruction
Purpose
Load a quad-word of data into the specified general purpose register.
Note: This instruction should only be used on 64-bit PowerPC® processors
running a 64-bit application.
Syntax
| Bits | Value |
|---|---|
| 0 - 5 | 56 |
| 6 - 10 | RS |
| 11 - 15 | RA |
| 16 - 27 | DQ |
| 28 - 31 | 0 |
Description
The lq instruction loads a quad word in storage from a specified location in memory addressed by the effective address (EA) into the target general-purpose registers (GPRs) RT and RT+1.
DQ is a 12-bit, signed two's complement number, which is sign extended to 64 bits and then multiplied by 16 to provide a displacement Disp. If GPR RA is not 0, the EA is the sum of the contents of GPR RA and Disp. If GPR RA is 0, then the EA is Disp.
Parameters
| Item | Description |
|---|---|
| RT | Specifies target general-purpose register where result of operation is stored. If RT is odd, the instruction form is invalid. |
| Disp | Specifies a 16-bit signed number that is a multiple of 16. The assembler divides this number by 16 when generating the instruction. |
| RA | Specifies source general-purpose register for EA calculation. |
Implementation
This instruction is defined only for 64-bit implementations. Using it on a 32-bit implementation will cause the system illegal instruction error handler to be invoked.