English
Language : 

RM0004 Datasheet, PDF (496/1176 Pages) STMicroelectronics – Programmer’s reference manual for Book E processors
RM0004
Instruction set
evfscmpeq
Vector SPFP APU User
Vector floating-point single-precision compare equal
evfscmpeq
crfD,rA,rB
evfscmpeq
0
56
8 9 10 11
15 16
20 21
31
0 0 0 1 0 0 crfD 0 0
rA
rB
010 1000 1110
ah ← rA0:31
al ← rA32:63
bh ← rB0:31
bl ← rB32:63
if (ah = bh) then ch ← 1
else ch ← 0
if (al = bl) then cl ← 1
else cl ← 0
CR4*crD:4*crD+3 ← ch || cl || (ch | cl) || (ch & cl)
Each element of rA is compared against the corresponding element of rB. If rA equals rB,
the crfD bit is set, otherwise it is cleared. Comparison ignores the sign of 0 (+0 = –0).
Exceptions:
If the contents of either element of rA or rB are Infinity, Denorm, or NaN,
SPEFSCR[FINV,FINVH] are set appropriately, and SPEFSCR[FGH,FXH,FG,FX] are
cleared appropriately. If floating-point invalid input exceptions are enabled, an interrupt is
taken, and the condition register is not updated. Otherwise, the comparison proceeds after
treating NaNs, Infinities, and Denorms as normalized numbers, using their values of ‘e’ and
‘f’ directly.
496/1176