[llvm-bugs] [Bug 39800] New: Clang 7.0 missing Power9 __builtin_darn and friends

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 26 18:06:51 PST 2018


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

            Bug ID: 39800
           Summary: Clang 7.0 missing Power9 __builtin_darn and friends
           Product: libraries
           Version: 7.0
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: noloader at gmail.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

My apologies if this is the wrong classification.

Clang 7.0 is missing Power9 builtins that GCC provides. I also happen to want
to use 3 of them.

Grepping the LLVM 7.0 source code:

llvm_source$ cat llvm/test/MC/PowerPC/ppc64-encoding.s | grep darn -B 1 -A 1

  # CHECK-BE: darn 2, 3        # encoding: [0x7c,0x43,0x05,0xe6]
  # CHECK-LE: darn 2, 3        # encoding: [0xe6,0x05,0x43,0x7c]
              darn 2, 3

However, I can't seen to find the builtin:

  llvm_source$ grep -IR darn | grep builtin
  llvm_source$

The builtins I am looking for are:

  long long __builtin_darn (void);
  long long __builtin_darn_raw (void);
  int __builtin_darn_32 (void);

It would be nice to see some of them make it into Clang 7.0.1. (Re:
https://bugs.llvm.org/show_bug.cgi?id=39704).

Also see
https://gcc.gnu.org/onlinedocs/gcc/Basic-PowerPC-Built-in-Functions-Available-on-ISA-3_002e0.html
and https://stackoverflow.com/q/53491053/608639 .

-- 
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/20181127/d047ce24/attachment-0001.html>


More information about the llvm-bugs mailing list