SPA 5.0:
{@{!}Pg}
BFE{.fmt}{.BREV}
Rd{.CC},Ra,Sb
{&req_6}
{?sched}
;
.fmt: {.U32,.S32*}
Zero extend (U32) or sign extend (S32) extracted field into destination register
.BREV Bit reverse all the bits in Ra before the shift operation
.CC: Write condition codes
BFE allows the following source Sb:
Sb(register)
Sb(constant with immediate address)
Sb(#IMM20)
Bit Field Extract. Extract and zero/sign extend a bit field from Ra.
Sb contains:
bits[07:00]: start position of bit field to be extracted bits[15:08]: size of bit field to be extracted
Special cases (in priority order):
BFE R0,R1,R2;