Instruction Model
e200z3 Power Architecture Core Reference Manual, Rev. 2
Freescale Semiconductor
3-15
3.10.6
Embedded Vector and Scalar Single-Precision Floating-Point APU
Instructions
The vector and scalar SPFP APUs perform floating-point operations on single-precision operands. These
operations are IEEE-compliant with software interrupt handlers and offer a simpler interrupt model than
the floating-point instructions defined by the PowerPC ISA. Instead of FPRs, these instructions use GPRs
and offer improved performance for converting between floating-point, integer, and fractional values.
Sharing GPRs allows vector floating-point instructions to use SPE load and store instructions.
The two SPFP APUs are described as follows:
•
Vector SPFP instructions operate on a vector of two 32-bit, single-precision floating-point numbers
that reside in the upper and lower halves of the 64-bit GPRs. These instructions are listed in
alongside their scalar equivalents.
•
Scalar SPFP instructions operate on single 32-bit operands that reside in the lower 32 bits of the
GPRs. These instructions are listed in
.
NOTE
Both the vector and scalar versions of the instructions have the same syntax.
Table 3-8. Vector and Scalar SPFP APU Floating-Point Instructions
Instruction
Mnemonic
Syntax
Scalar
Vector
Convert Floating-Point from Signed Fraction
efscfsf evfscfsf r
D
,r
B
Convert Floating-Point from Signed Integer
efscfsi evfscfsi r
D
,r
B
Convert Floating-Point from Unsigned Fraction
efscfuf
evfscfuf
r
D
,r
B
Convert Floating-Point from Unsigned Integer
efscfui evfscfui r
D
,r
B
Convert Floating-Point to Signed Fraction
efsctsf
evfsctsf
r
D
,r
B
Convert Floating-Point to Signed Integer
efsctsi
evfsctsi
r
D
,r
B
Convert Floating-Point to Signed Integer with Round toward Zero
efsctsiz
evfsctsiz
r
D
,r
B
Convert Floating-Point to Unsigned Fraction
efsctuf
evfsctuf
r
D
,r
B
Convert Floating-Point to Unsigned Integer
efsctui
evfsctui
r
D
,r
B
Convert Floating-Point to Unsigned Integer with Round toward Zero
efsctuiz
evfsctuiz
r
D
,r
B
Floating-Point Absolute Value
efsabs evfsabs r
D
,r
A
Floating-Point Add
efsadd evfsadd r
D
,r
A
,r
B
Floating-Point Compare Equal
efscmpeq evfscmpeq cr
D
,r
A
,r
B
Floating-Point Compare Greater Than
efscmpgt evfscmpgt cr
D
,r
A
,r
B
Floating-Point Compare Less Than
efscmplt evfscmplt cr
D
,r
A
,r
B
Floating-Point Divide
efsdiv evfsdiv
r
D
,r
A
,r
B
Floating-Point Multiply
efsmul
evfsmul
r
D
,r
A
,r
B
Содержание e200z3
Страница 1: ...e200z3 Power Architecture Core Reference Manual Supports e200z3 e200z335 e200z3coreRM Rev 2 06 2008 ...
Страница 32: ...e200z3 Power Architecture Core Reference Manual Rev 2 xii Freescale Semiconductor ...
Страница 50: ...Register Model e200z3 Power Architecture Core Reference Manual Rev 2 2 2 Freescale Semiconductor ...
Страница 238: ...Memory Management Unit e200z3 Power Architecture Core Reference Manual Rev 2 5 16 Freescale Semiconductor ...
Страница 332: ...Power Management e200z3 Power Architecture Core Reference Manual Rev 2 8 4 Freescale Semiconductor ...
Страница 424: ...Revision History e200z3 Power Architecture Core Reference Manual Rev 2 A 2 Freescale Semiconductor ...