Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10399

Compiler user guide spru514 incorrectly lists intrinsics __fmin64 __fmax64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium 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

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

              Created:
              Updated:
              Resolved: