首页> 外国专利> APPARATUS AND METHOD FOR SHIFTING PACKED QUADWORDS AND EXTRACTING PACKED WORDS

APPARATUS AND METHOD FOR SHIFTING PACKED QUADWORDS AND EXTRACTING PACKED WORDS

机译:打包四字组和提取打包字的装置和方法

摘要

An apparatus and method for performing left-shifting operations on packed quadword data. For example, one embodiment of a processor comprises: a decoder to decode a left-shift instruction to generate a decoded left-shift instruction; a first source register to store a plurality of packed quadword data elements, each of the packed quadword data elements including a sign bit; execution circuitry to execute the decoded left-shift instruction, the execution circuitry comprising shift circuitry with sign preservation logic to left-shift first and second packed quadword data elements from first and second packed quadword data element locations, respectively, in the first source register by an amount specified in an immediate value or in a control value in a second source register, the left-shifting to generate first and second left-shifted quadwords, the shift circuitry to write zeroes into bit positions exposed by the left-shifting of the packed quadword data elements; the sign preservation logic to maintain a copy of the sign bit while the shift circuitry performs the left-shift operations; the execution circuitry to cause selection of 16 most significant bits of the first and second left-shifted quadwords, including the sign bit, to be written to 16 least significant bit regions of first and second quadword data element locations, respectively, of a destination register, writing the sign bit to the most significant bit position of each 16 least significant bit region.
机译:一种用于对打包的四字数据执行左移操作的装置和方法。例如,处理器的一个实施例包括:解码器,其对左移指令进行解码以生成解码后的左移指令;以及第一源寄存器,用于存储多个打包的四字数据元素,每个打包的四字数据元素包括符号位;执行电路以执行解码的左移指令,该执行电路包括具有符号保留逻辑的移位电路,以将第一和第二打包四字数据元素分别从第一源寄存器中的第一和第二打包四字数据元素位置分别左移第二个源寄存器中立即数或控制值中指定的数量,左移生成第一和第二左移四位数,移位电路将零写入压缩后的左移所暴露的位位置四字数据元素;符号保留逻辑在移位电路执行左移操作时保持符号位的副本;执行电路使选择的第一和第二左移四位数的最高有效位(包括符号位)的选择分别写入目标寄存器的第一和第二四字数据元素位置的16个最低有效位区域,将符号位写入每个16个最低有效位区域的最高有效位位置。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号