5.8.9. VTBL, VTBX

VTBL (Vector Table Lookup) uses byte indexes in a control vector to look up byte values in a table and generate a new vector. Indexes out of range return 0.

VTBX (Vector Table Extension) works in the same way, except that indexes out of range leave the destination element unchanged.

Syntax

Vop{cond}.8 Dd, list, Dm

where:

op

must be either TBL or TBX.

cond

is an optional condition code (see Condition codes).

Dd

specifies the destination vector.

list

Specifies the vectors containing the table. It must be one of:

  • {Dn}

  • {Dn,D(n+1)}

  • {Dn,D(n+1),D(n+2)}

  • {Dn,D(n+1),D(n+2),D(n+3)}.

All the registers in list must be in the range D0-D31.

Dm

specifies the index vector.

Copyright © 2002-2010 ARM. All rights reserved.ARM DUI 0204J
Non-ConfidentialID101213