Instructions
www.ti.com
MINF32 RaH, #16FHi
32-bit Floating-Point Minimum
Operands
RaH
floating-point source/destination register (R0H to R7H)
#16FHi
A 16-bit immediate value that represents the upper 16-bits of an IEEE 32-bit
floating-point value. The low 16-bits of the mantissa are assumed to be all 0.
Opcode
LSW: 1110 1000
0011 0III
MSW: IIII IIII
IIII Iaaa
Description
Compare RaH with the floating-point value represented by the immediate operand. If the
immidate value is smaller, then load it into RaH.
if(RaH > #16FHi:0) RaH = #16FHi:0
#16FHi is a 16-bit immediate value that represents the upper 16-bits of an IEEE 32-bit
floating-point value. The low 16-bits of the mantissa are assumed to be all 0. This
addressing mode is most useful for constants where the lowest 16-bits of the mantissa
are 0. Some examples are 2.0 (0x40000000), 4.0 (0x40800000), 0.5 (0x3F000000), and
-1.5 (0xBFC00000). The assembler will accept either a hex or float as the immediate
value. That is, -1.5 can be represented as #-1.5 or #0xBFC0.
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 == #16FHi:0) {ZF=1, NF=0}
if(RaH >
#16FHi:0) {ZF=0, NF=0}
if(RaH <
#16FHi:0) {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, #5.5
; R0H =
5.0, ZF = 0, NF = 1
MINF32
R1H, #2.5
; R1H =
2.5, ZF = 0, NF = 0
MINF32
R2H, #-1.0
; R2H = -1.5, ZF = 0, NF = 1
MINF32
R2H, #-1.5
; R2H = -1.5, ZF = 1, NF = 0
See also
MINF32 RaH, RbH || MOV32 RcH, RdH
Instruction Set
76
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 ...