Itanium(R) processor topicExtract Instruction

extr

Operation Font Conventions

Instruction Type I

Format

(qp) extr r1 = r3, pos6, len6 signed_form

(qp) extr.u r1 = r3, pos6, len6 unsigned_form


Description

A field is extracted from GR r3, either zero extended or sign extended, and placed right-justified in GR r1. The field begins at the bit position given by the second operand and extends len6 bits to the left. The bit position where the field begins is specified by the pos6 immediate. The extracted field is sign extended in the signed_form or zero extended in the unsigned_form. The sign is taken from the most significant bit of the extracted field. If the specified field extends beyond the most significant bit of GR r3, the sign is taken from the most significant bit of GR r3. The immediate value len6 can be any number in the range 1 to 64, and is encoded as len6-1 in the instruction. The immediate value pos6 can be any value in the range 0 to 63.

Click to see an example of the operation of extr t = r, 7, 50