发明名称 METHOD, PROGRAM, AND SYSTEM FOR CODE OPTIMIZATION
摘要 Method, program and system for code optimization. A sign assignment instruction with identically sized packed decimal format input and output operands is detected where the sign assignment instruction assigns a value of zero to a packed decimal data value input operand having a value of negative zero. If the input operand to the sign assignment instruction does not result from an add or subtract operation, or the value of the input operand is not greater than a value prior to that operation, the possibility that the value of the input operand of the sign assignment instruction is negative zero is checked when the input operand and the output operand have identical addresses. An instruction is generated and inserted for executing the sign assignment instruction only when there is the possibility that the operand value is negative zero.
申请公布号 US2016062752(A1) 申请公布日期 2016.03.03
申请号 US201514935582 申请日期 2015.11.09
申请人 International Business Machines Corporation 发明人 KAWAHITO Motohiro
分类号 G06F9/45;G06F9/38 主分类号 G06F9/45
代理机构 代理人
主权项 1. A method comprising: detecting a sign assignment instruction having an input operand and an output operand identical in size to each other, the sign assignment instruction operating on an input operand having a packed decimal format, the sign assignment instruction operating to assign a value of zero to a packed decimal data value of the input operand having a value of negative zero; analyzing, based on the detecting, the input operand of the sign assignment instruction to determine whether a value of the input operand results from an add or subtract operation and whether the value is greater than the value prior to the operation; and based on the analyzing determining at least one of one of that the value of the input operand does not result from an add or subtract operation or that the value is not greater than the value prior to the operation, checking, based on the input operand and the output operand of the sign assignment instruction having identical addresses, a possibility that the value of the input operand of the sign assignment instruction is negative zero; andgenerating and inserting an instruction for executing the sign assignment instruction only when there is the possibility that the value is negative zero.
地址 Armonk NY US