[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


            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

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:

Also see
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