Compiler user guide spru514 incorrectly lists intrinsics __fmin64 __fmax64

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-9019
    • Hide
      C2000_21.12.0.STS
      C2000_21.6.0.LTS
      C2000_18.12.0.LTS
      C2000_20.2.0.LTS
      Show
      C2000_21.12.0.STS C2000_21.6.0.LTS C2000_18.12.0.LTS C2000_20.2.0.LTS
    • C2000_21.12.0.STS
    • default
    • Hide
      The compiler will automatically generate the MINF64/MAXF64 instructions when it detects C code with the min/max idiom in conditionals or ternary operators. See below example which requires --opt_level=0 or higher.

      double fmax64(double arg1, double arg2)
      {
         return arg1 > arg2 ? arg1 : arg2;
      }

      cl2000 --abi=eabi --float_support=fpu64 test.c -o0

      ||fmax64||:
      ;*** 23 ----------------------- return __fmax64(arg1, arg2);
              MAXF64 R0,R1
              LRETR
      Show
      The compiler will automatically generate the MINF64/MAXF64 instructions when it detects C code with the min/max idiom in conditionals or ternary operators. See below example which requires --opt_level=0 or higher. double fmax64(double arg1, double arg2) {    return arg1 > arg2 ? arg1 : arg2; } cl2000 --abi=eabi --float_support=fpu64 test.c -o0 ||fmax64||: ;*** 23 ----------------------- return __fmax64(arg1, arg2);         MAXF64 R0,R1         LRETR

      For C2000, with --float_support=fpu64, the user guide incorrectly shows below intrinsics which are not supported:
      __fmin64(double x, double y)
      __fmax64(double x, double y)
      The compiler will automatically generate the MINF64/MAXF64 instructions when it detects C code with the min/max idiom in conditionals or ternary operators

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-2934 - Compiler user guide spru514 incorre...
                SYNCHRONIZED
                • Last Sync Date: