Instructions
MINF32 RaH, #16FHi
Operands
RaH
#16FHi
Opcode
LSW: 1110 1000
MSW: IIII IIII
Compare RaH with the floating-point value represented by the immediate operand. If the
Description
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.
This instruction modifies the following flags in the STF register:
Flags
Flag
Modified
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 >
if(RaH <
This is a single-cycle instruction.
Pipeline
Example
MAXF32 RaH, #16FHi
See also
MAXF32 RaH, RbH
MINF32 RaH, RbH
MINF32 RaH, RbH || MOV32 RcH, RdH
76
Instruction Set
32-bit Floating-Point Minimum
floating-point source/destination register (R0H to R7H)
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.
0011 0III
IIII Iaaa
TF
ZI
No
No
#16FHi:0) {ZF=0, NF=0}
#16FHi:0) {ZF=0, NF=1}
MOVIZF32
R0H, #5.0
MOVIZF32
R1H, #4.0
MOVIZF32
R2H, #-1.5
MINF32
R0H, #5.5
MINF32
R1H, #2.5
MINF32
R2H, #-1.0
MINF32
R2H, #-1.5
NI
ZF
NF
No
Yes
Yes
; R0H =
5.0 (0x40A00000)
; R1H =
4.0 (0x40800000)
; R2H = -1.5 (0xBFC00000)
; R0H =
5.0, ZF = 0, NF = 1
; R1H =
2.5, ZF = 0, NF = 0
; R2H = -1.5, ZF = 0, NF = 1
; R2H = -1.5, ZF = 1, NF = 0
SPRUEO2A – June 2007 – Revised August 2008
www.ti.com
LUF
LVF
No
No
Submit Documentation Feedback
Need help?
Do you have a question about the TMS320C28 series and is the answer not in the manual?