发明名称 Rotate then operate on selected bits facility and instructions therefore
摘要 A rotate then operate instruction having a T bit is fetched and executed wherein a first operand in a first register is rotated by an amount and a Boolean operation is performed on a selected portion of the rotated first operand and a second operand in of a second register. If the T bit is ‘0’ the selected portion of the result of the Boolean operation is inserted into corresponding bits of a second operand of a second register. If the T bit is ‘1’, in addition to the inserted bits, the bits other than the selected portion of the rotated first operand are saved in the second register.
申请公布号 US8838943(B2) 申请公布日期 2014.09.16
申请号 US201012840707 申请日期 2010.07.21
申请人 International Business Machines Corporation 发明人 Greiner Dan F.;Slegel Timothy J.;von Buttlar Joachim
分类号 G06F7/38;G06F9/00;G06F9/44;G06F15/00 主分类号 G06F7/38
代理机构 代理人 Kinnaman, Jr. William A.
主权项 1. A computer implemented method for executing a rotate then operate instruction, the rotate then operate instruction specifying a Boolean operation to be performed, the rotate then operate instruction comprising an opcode, a T bit, a first operand consisting of a first number of bits, a second operand consisting of the first number of bits, a bit range and a rotate amount for rotating the second operand, the execution comprising: based on the bit range (bit I3-I4), selecting a first portion (bits I3-I4) of the first operand as a first argument of a Boolean operation, the selected first portion consisting of a second number of bits, the second number being less than the first number; based on the rotate amount (I5) and the bit range (bits I3-I4), rotate-ably selecting a second portion of the second operand as a second argument of a Boolean operation, the selected second portion consisting of the second number of bits, the second number being less than the first number, wherein rotate-ably selecting comprises selecting the portion of the second operand corresponding to a bit range (I3-I4) of a rotated value of the second operand rotated by the rotate amount (I5), the selected portion specified by a starting bit position (I3) and by an ending bit position (I4) inclusive of a selected range of bits; performing the Boolean operation between the first argument and the second argument to produce a result portion consisting of the second number of bits; and based on the T bit being 0, replacing the selected first portion (bits I3-I4) of the first operand with the result portion, wherein all bits of the first operand other than the selected first portion (bits I3-I4) are unchanged.
地址 Armonk NY US