<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [ppc64] int16, int8 are not supported by vec_vsx_ld/vec_vsx_st"
   href="https://llvm.org/bugs/show_bug.cgi?id=26720">26720</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ppc64] int16, int8 are not supported by vec_vsx_ld/vec_vsx_st
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jingyuuiuc@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Building ffmpeg for PowerPC64LE failed because some vec_vsx_ld/vec_vsx_st
intrinsic functions are supported by GCC, but not by LLVM. Basically,
1) parameters without "__vector" type are not supported
2) int16/uint16, int8/uint8 are not supported.

For example, the error message given by LLVM is like this:

libswscale/ppc/swscale_altivec.c:46:13: note: expanded from macro 'GET_LS'
        a = vec_vsx_ld(((b) << 1)  + 16, s);\
            ^~~~~~~~~~
toolchain/bin/../lib/clang/xxx-trunk/include/altivec.h:10111:39: note:
candidate function not viable: no known conversion from 'const int16_t *' (aka
'const short *') to '__vector int const *' for 2nd argument
static vector signed int __ATTRS_o_ai vec_vsx_ld(int __a,

This page shows all vec_vsx_ld/vec_vsx_st interfaces that GCC supports:
<a href="https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/PowerPC-AltiVec_002fVSX-Built_002din-Functions.html">https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/PowerPC-AltiVec_002fVSX-Built_002din-Functions.html</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>