www.ti.com
Instructions
I32TOF32 RaH, RbH
Convert 32-bit Integer to 32-bit Floating-Point Value
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1000 1001
MSW: 0000 0000
00bb baaa
Description
Convert the signed 32-bit integer in RbH to a 32-bit floating-point value and store the
result in RaH.
RaH = I32ToF32(RbH)
Flags
This instruction does not affect any flags:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
Pipeline
This is a 2 pipeline cycle (2p) instruction. That is:
I32TOF32
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- I32TOF32 completes, RaH updated
NOP
Any instruction in the delay slot must not use RaH as a destination register or use RaH
as a source operand.
Example
MOVIZ
R2H, #0x1111
; R2H[31:16] = 4369 (0x1111)
MOVXI
R2H, #0x1111
; R2H[15:0]
= 4369 (0x1111)
; Value of the 32 bit signed integer present
; in R2H is +286331153 (0x11111111)
I32TOF32
R3H, R2H
; R3H = I32TOF32 (R2H)
NOP
; 1 Cycle delay for I32TOF32 to complete
; <-- I32TOF32 complete, R3H = 286331153 (0x4D888888)
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
61
Summary of Contents for TMS320C28 series
Page 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...