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.

C2000 Code Generation Tools release 6.2.4 Defect History

I am trying to replicate the issue SDSCM00047220 described in the defect history using older versions of the code generation tools.  I cannot figure out how.  Can someone give an example of the code that can cause this issue?

Thanks

  • Try this with 6.2.0, no options:

    #include <stdio.h>
    #include <assert.h>
    
    int main()
    {
        int i = 35, j = 8;
        unsigned long ul = 0xf000;
    
        assert((ul >= (ul - ul)) == 1);
        assert((i >= j) == 1);
        assert(((ul >= (ul - ul)) - (i >= j)) == 0);
    }