www.ti.com
Instructions
MINF32 RaH, RbH
32-bit Floating-Point Minimum
Operands
RaH
floating-point source/destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1001 0111
MSW: 0000 0000
00bb baaa
Description
if(RaH > RbH) RaH = RbH
Special cases for the output from the MINF32 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, #4.0
; R1H =
4.0 (0x40800000)
MOVIZF32
R2H, #-1.5
; R2H = -1.5 (0xBFC00000)
MINF32
R0H, R1H
; R0H =
4.0, ZF = 0, NF = 0
MINF32
R1H, R2H
; R1H = -1.5, ZF = 0, NF = 0
MINF32
R2H, R1H
; R2H = -1.5, ZF = 1, NF = 0
MINF32
R1H, R0H
; R2H = -1.5, ZF = 0, NF = 1
See also
MINF32 RaH, RbH || MOV32 RcH, RdH
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
75
Содержание 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 ...