Method and Apparatus for Vector Instruction Table Filling and Lookup in Processor, and Electronic Device
Патент · US A1
Полный текст
A method for a vector instruction table filling and lookup in a processor, includes: configuring a vector instruction lookup table in a preset storage space of the processor; determining table filling types corresponding to candidate vector registers to be filled, wherein the table filling type comprises a first type and a second type, with respect to the first type, a product of a register vector width and a length multiplier of register groups is greater than or equal to the storage capacity, and with respect to the second type, the product of the register vector width and the length multiplier of the register groups is lower than the storage capacity; and writing a first element stored in a target vector register in a plurality of candidate vector registers into the vector instruction lookup table by using a table filling rule corresponding to the table filling type.