Instructions
www.ti.com
MAXF32 RaH, RbH
32-bit Floating-Point Maximum
Operands
RaH
floating-point source/destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1001 0110
MSW: 0000 0000
00bb baaa
Description
if(RaH < RbH) RaH = RbH
Special cases for the output from the MAXF32 operation:
•
NaN output will be converted to infinity
•
A denormalized output will be converted to positive zero.
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
Yes
Yes
No
No
The ZF and NF flags are configured on the result of the operation, not the result stored
in the destination register.
if(RaH == RbH) {ZF=1, NF=0}
if(RaH >
RbH) {ZF=0, NF=0}
if(RaH <
RbH) {ZF=0, NF=1}
Pipeline
This is a single-cycle instruction.
Example
MOVIZF32
R0H, #5.0
; R0H =
5.0 (0x40A00000)
MOVIZF32
R1H, #-2.0
; R1H = -2.0 (0xC0000000)
MOVIZF32
R2H, #-1.5
; R2H = -1.5 (0xBFC00000)
MAXF32
R2H, R1H
; R2H = -1.5, ZF = NF = 0
MAXF32
R1H, R2H
; R1H = -1.5, ZF = 0, NF = 1
MAXF32
R2H, R0H
; R2H =
5.0, ZF = 0, NF = 1
MAXF32
R0H, R2H
; R2H =
5.0, ZF = 1, NF = 0
See also
MAXF32 RaH, RbH || MOV32 RcH, RdH
Instruction Set
72
SPRUEO2A – June 2007 – Revised August 2008
Содержание TMS320C28 series
Страница 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...