-
公开(公告)号:US20200371788A1
公开(公告)日:2020-11-26
申请号:US16422501
申请日:2019-05-24
Applicant: TEXAS INSTRUMENTS INCORPORATED
Inventor: Duc BUI , Peter Richard DENT , Timothy D. ANDERSON
IPC: G06F9/30
Abstract: A method to compare first and second source data in a processor in response to a vector maximum with indexing instruction includes specifying first and second source registers containing first and second source data, a destination register storing compared data, and a predicate register. Each of the registers includes a plurality of lanes. The method includes executing the instruction by, for each lane in the first and second source register, comparing a value in the lane of the first source register to a value in the corresponding lane of the second source register to identify a maximum value, storing the maximum value in a corresponding lane of the destination register, asserting a corresponding lane of the predicate register if the maximum value is from the first source register, and de-asserting the corresponding lane of the predicate register if the maximum value is from the second source register.