Encoding:

EXTEND

11110

LSB

(pos)

1

MSBD

(size-1)

SHIFT

00110

rx

ry

sel = 2

SLL

00

5

5

1

5

5

3

3

3

2

Format:

EXT ry, rx, pos, size

MIPS16e2

Extract Bit Field Extended

Purpose:

Extract Bit Field Extended

To extract a bit field from GPR rx and store it right-justified into GPR ry

Description:

GPR[ry] = ExtractField(GPR[rx], msbd, lsb)

The bit field starting at bit pos and extending for size bits is extracted from GPR rx and stores zero-extended and right-justified in GPR ry

Restrictions:

In implementations prior to MIPS16e2, this instriction yields unpredicable result. It would typically be executed as an SSL instruction. The operation in UNPREDICTABLE if lsb+msbd > 31

Operation:

if (lsb + msbd) > 32 then
  UNPREDICTABLE
endif
temp = 032 - (msbd+1) || GPR[XLat[rx]]msbd+lsb..lsb
GPR[XLat[ry]] = temp

Exceptions:

None