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

C28x User Guide Should State CLA intrinsics __u32_bits_as_f32 and __f32_bits_as_u32 are not supported under COFF ABI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium

      These commands show a CLA file that uses these intrinsics, then builds it once for COFF ABI, then again for EABI. The COFF ABI build emits warnings which indicate the intrinsics are not recognized. The compiler manual makes no mention of either ABI in the documentation of these intrinsics.

      C:\workdir>type file.cla
      #define LF0(v) (__u32_bits_as_f32(__f32_bits_as_u32(v) & 0xffff0000))
      
      float pi0;
      void fxn()
      {
         pi0 = LF0(3.14159);
      }
      
      C:\workdir>cl2000 --cla_support=cla1 --abi=coffabi file.cla
      "file.cla", line 6: warning: function "__u32_bits_as_f32" declared implicitly
      "file.cla", line 6: warning: function "__f32_bits_as_u32" declared implicitly
      
      C:\workdir>cl2000 --cla_support=cla1 --abi=eabi file.cla
      

      Note file.cla is attached.

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

              Created:
              Updated:
              Resolved: