This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28384D: Specified behaviour of FRACF32 and FRACF64 instructions for negative inputs

Part Number: TMS320F28384D

The FRACF32 and FRACF64 instructions are documented in TMS320C28x Extended Instruction Sets Technical Reference Manual, pages 59 and 328 of SPRUHS1C respectively .

There are no examples given for a negative input, and the descriptions does not explicitly state the sign bit is copied from source to destination.

Is the behaviour of the FRACF32 and FRAC64 instructions specified for negative inputs?

  • Hi,

    Yes the sign carries over as you can see below:

    I passed #-19.625 as input and the output preserves the - sign. However, the instructions do not affect the flags in the STF register. Same applies to FRAC64 too.

    -Shantanu

  • Hi Shantanu,

    Is the result that the sign bit is copied across a specification of current and future behaviour, or only an observation of current behaviour? Will the copying of the sign be maintained on all future iterations of the FPU/FPU64?

    If so, I will request a change to the manual to include the example above.

    - Iain

  • Hi Iain,

    The sign bit being copied over has always been the behaviour. There are no plans to change that. 

    Thank you for your inputs. We will make the change.

    -Shantanu