JPS62128331A - Information processor - Google Patents

Information processor

Info

Publication number
JPS62128331A
JPS62128331A JP26883685A JP26883685A JPS62128331A JP S62128331 A JPS62128331 A JP S62128331A JP 26883685 A JP26883685 A JP 26883685A JP 26883685 A JP26883685 A JP 26883685A JP S62128331 A JPS62128331 A JP S62128331A
Authority
JP
Japan
Prior art keywords
mantissa
register
digit
data
floating point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26883685A
Other languages
Japanese (ja)
Inventor
Kazuo Yoshimune
吉宗 一夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP26883685A priority Critical patent/JPS62128331A/en
Publication of JPS62128331A publication Critical patent/JPS62128331A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the decision of sizes among floating point data at a high speed by deciding the sizes among normalized data without performing a digit aligning operation. CONSTITUTION:In an information processor which handles the floating point data consisting of an index part, a mantissa part, and the code of a mantissa, the titled device is constituted with a means which compares two index parts, the means which decides whether the highest order digit of the mantissa part is zero or not, and the means which decides, when the sizes between two floating point data are decided, the sizes between two data based on the sizes of index parts, and the code of the mantissa corresponding to the larger index part regardless of a comparison result after the digit alignment of the mantissa part, in a case that the index parts of two data are different and also, the most significant digit of the mantissa part corresponding to the larger index part is not zero. Thereby, the comparison operation of floating point data can be performed at a high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に関し、特に浮動小数点データの
比較手段に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to a means for comparing floating point data.

〔従来の技術〕[Conventional technology]

多くの情報処理装置において、浮動小数点データが定義
され、その四則演算を実行することができる。第2図に
浮動小数点データの形式の一例を示す、この図におい°
ζ、仮数部は最上位+11の左に小数点がある6桁の1
6進小数、指数部は7ビノトの符号なし整数、符号ビッ
トは仮数の符号を示す。
In many information processing devices, floating point data is defined and four arithmetic operations can be performed on it. Figure 2 shows an example of the format of floating point data.
ζ, the mantissa is a 6-digit 1 with a decimal point to the left of the most significant +11
A hexadecimal decimal number, the exponent part is an unsigned integer of 7 bits, and the sign bit indicates the sign of the mantissa.

仮数部9指数部、符号ビットの表す数値をそれぞれM、
E、Sとするとき、この浮動小数点データの表す数値は
下記の通りである。
Let the numbers represented by the mantissa part, 9 exponent part, and the sign bit be M, respectively.
When E and S are used, the numerical values represented by this floating point data are as follows.

M X 15 (!−641 ×(−1)3上記のよう
な数値の表示法において、仮数部の有効桁が6桁未満の
場合には、その表示法に任意性があるが、演算精度を保
ち、また演算結果の表示を一義的にするために“正規化
された表示”が定義される。すなわち、仮数部がゼロで
はなく、その最上位桁がゼロであるような場合は、仮数
部最上位桁がゼロでなくなるまで仮数部を左へ桁送りし
、桁送りされた術数たり指数部を残少しだ表示をもって
“正規化された表示”とする。また仮数部がゼロである
場合は、指数部および符号ビットがゼロである表示をも
って”正規化されたゼロの表示”とする。なお、演算結
果をこのような正規化された表示にすることを演算後正
規化と呼ぶ。
M ``Normalized display'' is defined in order to maintain and unambiguously display the result of an operation.In other words, if the mantissa is not zero and the most significant digit is zero, the mantissa The mantissa is shifted to the left until the most significant digit is no longer zero, and the shifted arithmetic number or exponent remains in a slightly truncated display, which is called a "normalized display."Also, if the mantissa is zero, , a display in which the exponent part and the sign bit are zero is referred to as a "normalized zero display." Note that displaying the result of an operation in such a normalized display is called post-operation normalization.

浮動小数点データの加減算は以下のように行なわれる。Addition and subtraction of floating point data is performed as follows.

l)減算の場合には減数の符号を反転する。l) In the case of subtraction, reverse the sign of the subtracted number.

2) 二数の指数部を比較する。2) Compare the exponent parts of two numbers.

3) 二数の指数部に差があれば、小なる指数部に対応
する仮数部を右へ指送りすると同時に指数部を増加し、
二数の指数部を等しくする(仮数部の桁送りによって下
位の有効11iが失われ得るが、1桁だりは保護桁に入
れ、ljJ算後正規化の後に保護1jを切り捨てる)。
3) If there is a difference in the exponent parts of the two numbers, move the mantissa part corresponding to the smaller exponent part to the right and at the same time increase the exponent part,
Make the exponent parts of the two numbers equal (the lower significant 11i may be lost by shifting the mantissa part, but one digit is placed in the guard digit, and the guard 1j is truncated after normalization after ljJ calculation).

4)符号を考慮に入れて仮数部の加減算を行ない、被加
数/被減数の符号を結果の符号とする。
4) Perform addition and subtraction of the mantissa parts taking the sign into account, and use the sign of the summand/minuend as the sign of the result.

5) 仮数部の加算によって桁あぶれが起これば、仮数
部を右へ1桁だけ桁送りし、指数部をlだけ増加する。
5) If a digit error occurs due to addition of the mantissa, shift the mantissa by one digit to the right and increase the exponent by l.

仮数部の減算によって結果が負になれば、仮数部の補数
を求め、結果の符号を反転する。さらに必要ならば演算
後正規化を行なう。
If the result is negative due to subtraction of the mantissa, the complement of the mantissa is found and the sign of the result is inverted. Furthermore, if necessary, normalization is performed after the calculation.

二つの浮動小数点データの大小関係はそれらの減算結果
の正負によって決定されるので、比較の操作は、減算の
操作から仮数部桁あぶれの処理、仮数部が負となった場
合の補数化処理、および演算後正規化処理を除いたもの
となる。
The magnitude relationship between two floating point data is determined by the sign of the result of their subtraction, so the comparison operations include subtraction, handling of mantissa digit smearing, complementation processing when the mantissa becomes negative, and so on. and excluding post-operation normalization processing.

〔発明が解決軒ようとする問題点〕[Problems that the invention attempts to solve]

しかし、比較すべきデータの指数部が異なり、大なる指
数部を有するデータの仮数部最上位桁がゼロでなければ
、その絶対値が他方のデータの絶対値より大きいことは
明らかであり、桁合わせ後の仮数部の比較結果によらず
、その仮数部の符号によって直ちに2数の大小関係を決
定できる。すなわち、浮動4.数点データの比較におい
て桁合わせ動作が必要なのは、二数の指数部が異なり、
かつ大なる指数部に対応する仮数部の最上位桁がゼロで
ある場合のみであり、また正規化されたゼロの指数部が
他方のデータの指数部より大きいことはないので、正規
化されたデータの比較において桁合わせ動作は不要であ
る。然るに、従来に暑いては前述したように一律に桁合
わせ後の仮数部の比較結果から2数の大小関係を決定し
ており、処理を高速に行なうことが出来ないという欠点
があった。
However, if the exponent parts of the data to be compared are different and the most significant digit of the mantissa part of the data with a large exponent part is not zero, it is clear that its absolute value is greater than the absolute value of the other data, and the digit Regardless of the comparison result of the mantissa parts after matching, the magnitude relationship between the two numbers can be immediately determined based on the sign of the mantissa parts. That is, floating 4. Digit matching is necessary when comparing several data points because the exponent parts of the two numbers are different.
and the most significant digit of the mantissa corresponding to the larger exponent is zero, and the normalized exponent of zero is never greater than the exponent of the other data, so the normalized No digit alignment operation is required when comparing data. However, in the past, as mentioned above, the magnitude relationship between two numbers is uniformly determined from the comparison result of the mantissa part after digit adjustment, which has the disadvantage that high-speed processing cannot be performed.

本発明はこのような従来の欠点を解決したもので、その
目的は浮動小数点データの大小判定を高速に行ない得る
ようにすることにある。
The present invention solves these conventional drawbacks, and its purpose is to enable high-speed determination of the magnitude of floating-point data.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、指数部と仮数部と
仮数の符号とから構成される浮動小数点データを取り扱
う情報処理装置において、二つの指数部を比較する手段
と、 仮数部の最上位桁がゼロであるか否かを判定する手段と
、 二つの浮動小数点データの大小関係を判定するにあたっ
て、二つのデータの指数部が異なり且つ大なる指数部に
対応する仮数部の最上位桁がゼロでない場合には、仮数
部の桁合わせ後の比較結果によらず、指数部の大小関係
と大なる指数部に対応する仮数の符号とによって、二つ
のデータの大小関係を判定する手段とから構成される。
In order to achieve the above object, the present invention provides an information processing device that handles floating point data consisting of an exponent part, a mantissa part, and a sign of the mantissa, and includes means for comparing two exponent parts, and the most significant part of the mantissa part. A means for determining whether a digit is zero or not, and a means for determining the magnitude relationship between two floating point data, if the exponents of the two data are different and the most significant digit of the mantissa corresponding to the larger exponent is If it is not zero, the method determines the magnitude relationship between the two data based on the magnitude relationship of the exponent part and the sign of the mantissa corresponding to the larger exponent part, regardless of the comparison result after digit adjustment of the mantissa part. configured.

〔作用〕[Effect]

本発明の情報処理装置では、二つの浮動小数点データの
大小関係を判定するにあたり、両者の指数部が異なり、
かつ大なる指数部を有するデータが正規化された表示で
ある場合即ちその仮数部の最上位桁がゼロでない場合に
は、その仮数部の符号によって直らに大小関係が決定さ
れ、その他の場合にのみ桁合わせ後の仮数部の比較結果
によって大小関係が決定されるので、浮動小数点データ
の比較操作を高速に行なうことができる。
In the information processing device of the present invention, when determining the magnitude relationship between two floating point data, the exponent parts of the two are different,
And if the data with a large exponent part is a normalized display, that is, if the most significant digit of its mantissa part is not zero, the magnitude relationship is determined directly by the sign of the mantissa part, and in other cases Since the magnitude relationship is determined by the comparison result of the mantissa after digit alignment, floating-point data comparison operations can be performed at high speed.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の実施例である情報処理装置の浮動小数
点データ演算回路であり、マイクロプログラムによって
制御される(乗除算のみに使用する回路についζは、本
発明に関係しないので図示は省略しである)、、データ
・ハス10は図示しない浮動小数点データ・レジスタお
よび主記憶データ・レジスタと本浮動小数点データ演算
回路とを接続している。S入レジスタ21およびS[3
レジスタ22は各1ビツトのレジスタであって、SΔ入
レジスタIは符号演算器20の出力、SBレジスタ22
はデータ・バス10上の符号ビットを入力とし、両しジ
スク21.22の出力は符号演算器20の入力となって
いる。また、S入レジスタ21の内容はデータ・バス1
0に出力できるとともに、図示しないマイクロプログラ
ム分岐判定回路においてマイクロプログラムで判定でき
る。EA入レジスタ1およびEBレジスタ32は各8ビ
ツトのレジスタであって、EA入レジスタ1は指数演算
器30の出力、EBレジスタ32はデータ・ハス10上
の指数部を入力とし、両レジスタ31.32の出力は指
数演算器30の入力となっている。また、EA入レジス
タ1の内容はデータ・バス10に出力でき、さらにEΔ
入レジスタ1の内容がゼロであることを示ずEへZ信号
33と、負であることを示すEASli号34はマイク
ロプログラムで判定できる。M△入レジスタ1およびM
Bレジスタ42は各32ビツトのレジスタであって、M
A入レジスタ1は仮数/3ii算器40の出力、MBレ
ジスタ42はデータ・ハス10上の仮数部を入力とし、
両レジスタ41.42の出力は仮数演算器40の入力と
なっている。またMA入レジスタ1の内容はデータ・バ
ス10に出力でき、さらに両レジスタ41.42の左か
ら3桁目(第9ビツトから第12ビツトまで)がゼロで
ないことを示すMAN信号43とMBN信号44はマイ
クロプログラムで判定できる。桁送り回路50はMA入
レジスタ1あるいはMBレジスタ42の内容を左右に1
桁(4ビツト)ずつ桁送りすることができる。条件コー
ド回路60は、SBレジスタ22の内容と、仮数演算器
40の出力がゼロであることを示すMFZ信号45と、
同出力が負であることを示すMFS信号46を人力とし
て、ソフトウェアで判定可能な2ビツトの条件コード(
CC)を設定する。
FIG. 1 shows a floating point data calculation circuit of an information processing device that is an embodiment of the present invention, and is controlled by a microprogram (circuits used only for multiplication and division are omitted because they are not related to the present invention. The data register 10 connects a floating point data register and a main memory data register (not shown) to this floating point data calculation circuit. S input register 21 and S[3
The registers 22 are 1-bit registers each, and the SΔ input register I is the output of the sign calculator 20, and the SB register 22
takes the sign bit on the data bus 10 as an input, and the outputs of both disks 21 and 22 serve as inputs to the sign calculator 20. Also, the contents of the S input register 21 are the data bus 1
It can be output as 0 and can also be determined by a microprogram in a microprogram branch determination circuit (not shown). The EA input register 1 and the EB register 32 are each 8-bit registers, and the EA input register 1 receives the output of the exponent operator 30, the EB register 32 receives the exponent part on the data lotus 10, and both registers 31. The output of 32 serves as an input to an exponent operator 30. In addition, the contents of EA input register 1 can be output to data bus 10, and EΔ
The Z signal 33 to E indicating that the contents of the input register 1 are zero and the EASli signal 34 indicating that the contents are negative can be determined by a microprogram. M△in register 1 and M
The B registers 42 are 32-bit registers each, and the M
The A input register 1 receives the output of the mantissa/3ii calculator 40, and the MB register 42 receives the mantissa part on the data lotus 10 as input.
The outputs of both registers 41 and 42 serve as inputs to the mantissa calculator 40. In addition, the contents of MA input register 1 can be output to data bus 10, and MAN signal 43 and MBN signal indicating that the third digit from the left (9th bit to 12th bit) of both registers 41 and 42 are not zero. 44 can be determined by a microprogram. The digit shift circuit 50 shifts the contents of the MA input register 1 or the MB register 42 by 1 to the left and right.
It is possible to shift by digit (4 bits). The condition code circuit 60 receives the contents of the SB register 22 and the MFZ signal 45 indicating that the output of the mantissa calculator 40 is zero;
Using the MFS signal 46 that indicates that the output is negative, a 2-bit condition code (
CC).

第2財は実施例の情報処理装置において取り扱われる浮
動小数点データの形式を示す。このような浮動小数点デ
ータに関する比較命令の動作は、第1オペランドから第
2オペランドを減算したときの結果によって両オペラン
ドの大小関係を決定し、これを2ビ、トの条件コード(
CC)に下記のように反映することである。
The second property indicates the format of floating point data handled by the information processing device of the embodiment. The operation of a comparison instruction regarding such floating-point data is to determine the magnitude relationship between both operands based on the result of subtracting the second operand from the first operand, and to calculate this using a 2-bit condition code (
CC) as follows.

(第1オペランド)=(第2オペランド)・・・ CC
−00 (第1オペランド)〈(第2オペランド)・・・ CC
←O1 (第1オペランド)〉(第2オペランド)・・・ CC
−10 第3図は実施例の情報処理装置において、浮動小数点デ
ータ比較命令を実行するマイク(コブログラムのフロー
チャートである。図中のa=h、j〜nはマイクロプロ
グラムの各ステップに対応し、各ステップを表す枠の上
段はそのマイクロステップで実行される動作、下段は次
のマイクロステ・2プが条件付で選ばれる時にテストさ
れる信号を示す(下段の信号が上段の動作の影響を受け
る場合には、上段の動作実行前の状態がテストされる)
(1st operand) = (2nd operand)... CC
-00 (1st operand) < (2nd operand)... CC
←O1 (1st operand)> (2nd operand)...CC
-10 FIG. 3 is a flowchart of a microprogram that executes a floating-point data comparison instruction in the information processing device of the embodiment. In the figure, a=h, j to n correspond to each step of the microprogram, The upper row of the frame representing each step shows the operation performed in that microstep, and the lower row shows the signal that is tested when the next microstep 2 is conditionally selected (the lower row signal shows the effect of the upper row operation). (If the above action is accepted, the state before the operation in the upper row is executed is tested.)
.

また、第3図および以下の説明において、Si。In addition, in FIG. 3 and the following description, Si.

I’:i、Miはそれぞれ第1オペランドの符号ビット
指数部、仮数部を示す。以下、本実施例の動作を説明す
る。
I': i and Mi indicate the sign bit exponent part and mantissa part of the first operand, respectively. The operation of this embodiment will be explained below.

l)指数部の比較 ・ステップa データ・バスlOから第1オペランドの符号ピッ1−3
1.指数部EI、仮数部MlがSBレジスタ22.E[
3レジスタ32.MBレジスタ42にロードされる(右
詰めで、上位にはゼロをつけて)。
l) Comparison of exponents/step a Data bus lO to first operand sign picks 1-3
1. The exponent part EI and the mantissa part Ml are stored in the SB register 22. E [
3 register 32. Loaded into the MB register 42 (right justified, with leading zeros).

・ステップb SBレジスタ22.EBレジスタ32.MBレジスタ4
2の内容が、演算器20.30.40を経てSA入レジ
スタ1.EA入レジスタ1. MA入レジスタ1に転送
され、あらためてデータ・バスlOから第2オペランド
の符号の符号とノI−32、指数部E2.仮数部M2が
SBレジスタ22、E Bレジスタ32.MBレジスタ
42にロードされる。ただし、符号ビットS2はデータ
・バスlOからのロード時に反転される(S2)。
-Step b SB register 22. EB register 32. MB register 4
The contents of 2 are sent to SA input register 1.2 via arithmetic units 20, 30, and 40. EA input register 1. The data is transferred to the MA input register 1, and the sign of the second operand, the sign of the second operand, and the exponent part E2. The mantissa part M2 is stored in the SB register 22, the E B register 32. Loaded into MB register 42. However, the sign bit S2 is inverted upon loading from the data bus IO (S2).

・ステップC 符号ビットの比較結果(すなわちSlとg7の排他的論
理和)がSA入レジスタ1に、指数部の比較結果(すな
わらEl−E2)がE入レジスタ31にロードされる。
- Step C The sign bit comparison result (ie, exclusive OR of Sl and g7) is loaded into the SA input register 1, and the exponent part comparison result (ie, El-E2) is loaded into the E input register 31.

・ステップd ’  EAZ信号とEAS信号(すなわらElとE2の
大小関係)がテストされる。
- Step d' The EAZ signal and the EAS signal (ie, the magnitude relationship between El and E2) are tested.

2)El>E2の場合 ・ステップe [’、 I > E 2の場合、ステップdの次にこの
ステップが実行される。データ・バス10から第1オペ
ランドの符号ビットSl、指数部ElがSBレジスタ2
2.2Bレジスタ32にロードされ、MAN信号(すな
わち第1オペランドが正規化されていることを示す信号
)がテストされる。
2) In the case of El>E2 - Step e[', In the case of I>E2, this step is executed after step d. The sign bit Sl and exponent part El of the first operand are transferred from the data bus 10 to the SB register 2.
2.2B register 32 is loaded and the MAN signal (ie, the signal indicating that the first operand is normalized) is tested.

また、次に行われる可能性のある桁合わせ動作にそなえ
て、EA入レジスタ1が1だけ減少される。
Furthermore, in preparation for the next possible digit alignment operation, EA input register 1 is decremented by 1.

・ステップf El>E2でかつ第1オペランドが正規化されている場
合、ステップeの次にこのステップが実行され、SBレ
ジスタ22の内容(ずなわらSl)によって条件コード
CCが下記のように設定される。
・Step f If El>E2 and the first operand is normalized, this step is executed after step e, and the condition code CC is changed as follows according to the contents of the SB register 22 (Zunawara Sl). Set.

CCの第1ビツト ← 513 CCの第2ビツト 1−5r3 ・ステップg [’、I>E2でかつ第1オペランドが正規化されてい
ない場1合、ステップeの次にこのステップが実行され
゛る。M入レジスタ41の内容(ずなわちMl)が′左
に1桁だけ桁送りされる(相対的にMBレジスタ42が
右へ桁送りされたことになり、MBレジスクイ2の最下
位桁は保護Jitの役目を果たす)二EAZ信号(すな
わち111合わせ終了を示ず信″号)がテストされ、さ
らにEA入レジスタ1が警だけ減少される。
1st bit of CC ← 513 2nd bit of CC 1-5r3 ・Step g [', If I>E2 and the first operand is not normalized, then this step is executed after step e. Ru. The contents of the M input register 41 (that is, Ml) are shifted to the left by one digit (relatively, the MB register 42 is shifted to the right, and the lowest digit of the MB register 2 is protected. The two EAZ signals (i.e., the 111 match completion signal) are tested and the EA input register 1 is decremented by 0.

・ステップh・1.。・Step h・1. .

桁合わせが終了しなければ、このステップが実行され、
MBレジスタ42の内容(すなわちMl)が右へ1桁だ
け折送りされる。EAZ信号のテストとEA入レジスタ
1の内容の減少が行われ、桁合わせが終了するまでこの
ステップが繰返される。
If the digit alignment is not completed, this step is executed and
The contents of the MB register 42 (ie, Ml) are shifted one digit to the right. The EAZ signal is tested and the contents of EA input register 1 are decremented, and this step is repeated until the digit alignment is completed.

・ステップj 桁合わせが終了すると、このステップが実行され、S入
レジスタ21の内容(すなわらSlΦ52)がテストさ
れる。
- Step j When the digit alignment is completed, this step is executed and the contents of the S input register 21 (ie, SlΦ52) are tested.

・ステップk S1≠32の場合にこのステップが実行される。仮数演
算器40でMA入レジスタ1の内容とMBレジスタ42
の内容との加算値が計算され、その出力(ずなわら桁合
わせ後のMl+M2)とSBレジスタ22の内容(すな
わちSl)によって条件コードCCが下記のように設定
される。
- Step k This step is executed when S1≠32. The mantissa calculator 40 calculates the contents of the MA input register 1 and the MB register 42.
The condition code CC is set as shown below based on the output (Ml+M2 after Zunawara digit adjustment) and the contents of the SB register 22 (ie, Sl).

CCの第1ビット−(丁■ΦMFS)  ・「丁7CC
(7)第2ピツ)= (Sr3G)MFS)  ・MF
 Z・ステップβ 51=32の場合にこのステップが実行される。仮数演
算器40でMA入レジスタ1の内容からMBレジスタ4
2の内容を減算する計算がおこなわれ、その出力(すな
わち桁合わせ後のMl−Ml)とSBレジスタ22の内
容(すなわらSl)によって条件コーFCCがステップ
にと同様に設定される。
1st bit of CC - (Ding■ΦMFS) ・``Ding7CC
(7) 2nd pit) = (Sr3G)MFS) ・MF
Z.Step β This step is executed when 51=32. The mantissa calculator 40 converts the contents of the MA input register 1 into the MB register 4.
A calculation is performed to subtract the contents of 2, and the condition code FCC is set in the same way as in the step based on the output (ie, M1-M1 after digit alignment) and the content of the SB register 22 (ie, Sl).

3)  E l < E 2の場合 ・ステップm El<E2の場合、ステップdの次にこのステップが実
行される。MBレジスタ42の内容(Ml)が演算器4
0を経てMAレジスタ旧に転送され、MBレジスタ42
にはあらためて第1オペランドの仮数部がデータ・バス
IOからロードされる。MBN信号(すなわら第2オペ
ランドが正規化されていることを示す信号)がテストさ
れ、また、次に行われる可能性のある桁合わ・仕動作に
そなえて、EA入レジスタIの内容が反中云されるくず
なわら、Eへ=E2−El−1となる)。
3) When El<E2, step m When El<E2, this step is executed after step d. The contents of the MB register 42 (Ml) are stored in the arithmetic unit 4.
0 to the old MA register, and is transferred to the MB register 42.
The mantissa of the first operand is again loaded from the data bus IO. The MBN signal (i.e., the signal indicating that the second operand is normalized) is tested, and the contents of EA input register I are updated in preparation for possible next alignment/operation operations. Although it is said that it is anti-Chinese, to E = E2-El-1).

・ステップr El<E2でかつ第2オペランドが正規化されている場
合、ステップmの次にこのステップが実行され、SBレ
ジスタ22の内容(すなわらS2)によって条件コード
CCがセントされる。
Step r If El<E2 and the second operand is normalized, this step is executed after step m, and a condition code CC is sent according to the contents of the SB register 22 (ie, S2).

・ステップB−a El<E2かつ第2オペランドが正規化されていない場
合、ステップmの次にこれらのステップが実行される。
- Step B-a If El<E2 and the second operand is not normalized, these steps are executed after step m.

El>E2の場合と同じく、ステップgでのM2の左指
送り、ステップhでのM+の右桁送りにより、tfi合
わせが行われる。
As in the case of El>E2, tfi adjustment is performed by moving M2 to the left in step g and moving M+ to the right in step h.

Ij合わせが終了すると、ステップにあるいはlでM2
±Mlが実行され、その結果とSBレジスタ22の内容
(すなわち丁7)によって条件コードCCがセットされ
る。
When Ij adjustment is completed, move to step or press M2
±Ml is executed, and the condition code CC is set according to the result and the contents of the SB register 22 (ie, 7).

4)  E1=E2の場合 ・ステップn E1=E2の場合、ステップdの次にこのステップが実
行される。データ・バス10から第1オペランドの符号
ビットStがロードされ、SA入レジスタ1の内容(ず
なわら5tO32)がテストされる。
4) When E1=E2/Step n When E1=E2, this step is executed after step d. The sign bit St of the first operand is loaded from the data bus 10 and the contents of the SA input register 1 (5tO32) are tested.

・ステップkまたは1 E1=E2の場合、ステップnの次にこのステップが実
行される。E I >E2の場合の桁合わせ終了後の動
作と同様である。
- Step k or 1 If E1=E2, this step is executed next to step n. The operation is similar to the operation after completion of digit alignment in the case of E I >E2.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は浮動小数点データの比較に
おいて、正規化されたデータについては桁合わせ動作な
しに大小関係を判定することにより、浮動小数点データ
の大小判定動作を高速化することができる効果かある。
As explained above, the present invention has the effect of speeding up the size determination operation of floating point data by determining the magnitude relationship without digit alignment for normalized data when comparing floating point data. There is.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の実施例である情報処理装置の浮動小数
点データ演算回路のブロック図、第2図は浮動小数点デ
ータのデータ形式を示す図および、 第3図は浮動小数点データ比較命令を実行するマイクロ
プログラムの流れ図である。 図において、10はデータ・バス、20は符号演算器、
21はS入レジスタ、22はSBレジスタ、30は指数
演算器、31はEA入レジスタ32はEBレジスタ、3
3はEAZ信号、34はEAS信号、4oは仮数演算器
、41はM入レジスタ、42はMBレジスタ、43はM
AN信号、44はMBN信号、45はMFZ信号、46
はMFS信号、50は桁送り回路、60は条件コード回
路である。
FIG. 1 is a block diagram of a floating point data calculation circuit of an information processing device that is an embodiment of the present invention, FIG. 2 is a diagram showing the data format of floating point data, and FIG. 3 is a diagram showing the execution of a floating point data comparison instruction. 2 is a flowchart of a microprogram. In the figure, 10 is a data bus, 20 is a sign calculator,
21 is an S input register, 22 is an SB register, 30 is an exponent operator, 31 is an EA input register, 32 is an EB register,
3 is the EAZ signal, 34 is the EAS signal, 4o is the mantissa operator, 41 is the M input register, 42 is the MB register, 43 is the M
AN signal, 44 is MBN signal, 45 is MFZ signal, 46
is an MFS signal, 50 is a shift circuit, and 60 is a condition code circuit.

Claims (1)

【特許請求の範囲】 指数部と仮数部と仮数の符号とから構成される浮動小数
点データを取り扱う情報処理装置において、 二つの指数部を比較する手段と、 仮数部の最上位桁がゼロであるか否かを判定する手段と
、 二つの浮動小数点データの大小関係を判定するにあたっ
て、二つのデータの指数部が異なり且つ大なる指数部に
対応する仮数部の最上位桁がゼロでない場合には、仮数
部の桁合わせ後の比較結果によらず、指数部の大小関係
と大なる指数部に対応する仮数の符号とによって、二つ
のデータの大小関係を判定する手段とを具備したことを
特徴とする情報処理装置。
[Scope of Claims] An information processing device that handles floating point data consisting of an exponent part, a mantissa part, and a sign of the mantissa, comprising: means for comparing two exponent parts; and the most significant digit of the mantissa part is zero. In determining the magnitude relationship between two floating point data, if the exponent parts of the two data are different and the most significant digit of the mantissa corresponding to the larger exponent part is not zero, , characterized by comprising means for determining the magnitude relationship between two data based on the magnitude relationship of the exponent part and the sign of the mantissa corresponding to the larger exponent part, regardless of the comparison result after digit alignment of the mantissa part. Information processing equipment.
JP26883685A 1985-11-29 1985-11-29 Information processor Pending JPS62128331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26883685A JPS62128331A (en) 1985-11-29 1985-11-29 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26883685A JPS62128331A (en) 1985-11-29 1985-11-29 Information processor

Publications (1)

Publication Number Publication Date
JPS62128331A true JPS62128331A (en) 1987-06-10

Family

ID=17463937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26883685A Pending JPS62128331A (en) 1985-11-29 1985-11-29 Information processor

Country Status (1)

Country Link
JP (1) JPS62128331A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0192829A (en) * 1987-10-02 1989-04-12 Hitachi Ltd Floating point computing element
JPH01279317A (en) * 1987-05-01 1989-11-09 Rca Licensing Corp Multi-bit digital threshold comparator circuit
JPH0254333A (en) * 1988-08-18 1990-02-23 Mitsubishi Electric Corp Value comparator
US5895840A (en) * 1996-09-13 1999-04-20 Denso Corporation Vibration sensing device having slidable conductive member
JP2011090623A (en) * 2009-10-26 2011-05-06 Nec Computertechno Ltd Floating-point retrieval calculation apparatus, method and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01279317A (en) * 1987-05-01 1989-11-09 Rca Licensing Corp Multi-bit digital threshold comparator circuit
JPH0192829A (en) * 1987-10-02 1989-04-12 Hitachi Ltd Floating point computing element
JPH0254333A (en) * 1988-08-18 1990-02-23 Mitsubishi Electric Corp Value comparator
US5895840A (en) * 1996-09-13 1999-04-20 Denso Corporation Vibration sensing device having slidable conductive member
JP2011090623A (en) * 2009-10-26 2011-05-06 Nec Computertechno Ltd Floating-point retrieval calculation apparatus, method and program

Similar Documents

Publication Publication Date Title
US6529928B1 (en) Floating-point adder performing floating-point and integer operations
US4941120A (en) Floating point normalization and rounding prediction circuit
US5357237A (en) In a data processor a method and apparatus for performing a floating-point comparison operation
US5995991A (en) Floating point architecture with tagged operands
JPH02294820A (en) Floating point arithmetic processor and arithmetic processing
EP0381403A2 (en) Pipelined floating point adder for digital computer
JPH09212337A (en) Floating-point arithmetic processor
JPS62128331A (en) Information processor
JPH01321516A (en) Apparatus and method for accelerating addition and subtraction of floating point by accelerating effective subtraction procedure
JP2517064B2 (en) Denormalized number processing method
JP2507183B2 (en) Floating point addition / subtraction unit
JPH0283728A (en) Floating point multiplier
JPS63158626A (en) Arithmetic processing unit
JP4428778B2 (en) Arithmetic device, arithmetic method, and computing device
US11797300B1 (en) Apparatus for calculating and retaining a bound on error during floating-point operations and methods thereof
JP2903529B2 (en) Vector operation method
JPH0413734B2 (en)
JPH05204606A (en) Floating point arithmetic system and unit
JP3124286B2 (en) Floating point arithmetic unit
JPS5960637A (en) Arithmetic device for floating decimal point
JPH04191925A (en) Arithmetic processor
JP3522387B2 (en) Pipeline arithmetic unit
JPH0383126A (en) Floating-point multiplier
JPS5930143A (en) Operation processing system
JPS581244A (en) Detecting method for exception of floating decimal point instruction