[llvm-bugs] [Bug 50932] New: [POWER] vec_bperm missing documented signatures

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 29 10:29:44 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50932

            Bug ID: 50932
           Summary: [POWER] vec_bperm missing documented signatures
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: clang at evan.coeusgroup.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

According to the documentation for XL C/C++ 16.1.1
(<https://www.ibm.com/docs/en/SSXVZZ_16.1.1/com.ibm.compilers.linux.doc/compiler.pdf>),
vec_bperm should have two signatures.  On POWER8:

  vector unsigned char
  vec_bperm(vector unsigned char a, vector unsigned char b);

And on POWER9 there should also be:

  vector unsigned long
  vec_bperm(vector unsigned long long a, vector unsigned char b);

Neither of these is present in clang; instead, there is a single signature (see
<https://github.com/llvm/llvm-project/blob/5d933c0b0c741767f2af8218d55581557903a254/clang/lib/Headers/altivec.h#L17356-L17363>)
which doesn't match either of the documented signatures:

  vector unsigned long long
  vec_bperm(vector unsigned __int128 a, vector unsigned char b);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210629/0762f369/attachment-0001.html>


More information about the llvm-bugs mailing list