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.

TMS320F28386D: Compiler Update Question is happened to set fp_mode = relaxed

Part Number: TMS320F28386D


Dear all,

        I want to update compiler from v20.2.4LTS to v22.6.0LTS
        The same program occur compile error that fp_mode set to relaxed, however, the program compile success when op_mode set to strict.
        fp_mode = relaxed : error massage is " [E9999] Fast integer division instruction is in the delay slot of an FPU register write. This instruction may generate undefined results "
        What setting does need to set for compiler update? Let the same program can update compiler version success in fp_mode= relaxed, . Please suggest me, thanks all.



     
        

  • To understand what happened, I need to reproduce the behavior.  For the source file Drive.c, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • Hi George,

        Thanks your reply. I resolved my problem, so I didn't submit.

        I put one calculated program(exp & log) on the function start, and then the function executed local variable declaration, this sequence let the division grammar of the function happened compile error.

       When I moved the calculated program(exp & log) after to the local variable declaration, the compile result that set  "fp_mode = relaxed"  is success. 

  • I'm glad you found a workaround.  However, whatever caused ...

    [E9999] Fast integer division instruction is in the delay slot of an FPU register write. This instruction may generate undefined results

    ... to be emitted is still present.  The only way it will get fixed is if you submit the test case I requested.  So, I'd appreciate if you would change things back to when that diagnostic appears, then submit the test case.  

    Thanks and regards,

    -George