Compiler and documentation disagree on whether ACLE intrinsic __fmaf is supported

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-13505
    • Hide
      ARMCLANG_5.0.0.STS
      ARMCLANG_2.1.0.LTS
      ARMCLANG_4.0.0.LTS
      ARMCLANG_3.2.0.LTS
      ARMCLANG_1.3.0.LTS
      Show
      ARMCLANG_5.0.0.STS ARMCLANG_2.1.0.LTS ARMCLANG_4.0.0.LTS ARMCLANG_3.2.0.LTS ARMCLANG_1.3.0.LTS
    • Hide
      ARMCLANG_5.0.0.STS
      ARMCLANG_3.2.4.LTS*
      ARMCLANG_4.0.4.LTS
      Show
      ARMCLANG_5.0.0.STS ARMCLANG_3.2.4.LTS* ARMCLANG_4.0.4.LTS
    • default

      The compiler manual entry for __fmaf indicates it is supported.

      The attached test case has these lines ...

      #include <arm_acle.h>
      
      float fxn(float arg1, float arg2, float arg3)
      {
          return __fmaf(arg1, arg2, arg3);
      }
      

      Build it ...

      % tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 file.c
      file.c:5:12: warning: __fmaf is an ACLE intrinsic but is not supported [-Wacle-intrinsics]
          5 |     return __fmaf(arg1, arg2, arg3);
            |            ^
      1 warning generated.
      

      The resulting code does not use the intrinsic, but calls the function __fmaf.

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-5146 - Compiler and documentation disagree...
                SYNCHRONIZED
                • Last Sync Date: