[all-commits] [llvm/llvm-project] 89ec99: [PowerPC][Builtin] Allowing __rlwnm to accept a va...

Kamau Bridgeman via All-commits all-commits at lists.llvm.org
Wed Oct 13 07:40:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89ec99c778943151213118f096e8008197c9ba10
      https://github.com/llvm/llvm-project/commit/89ec99c778943151213118f096e8008197c9ba10
  Author: Kamau Bridgeman <kamau.bridgeman at ibm.com>
  Date:   2021-10-13 (Wed, 13 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-ppc-xlcompat-error.c
    M clang/test/CodeGen/builtins-ppc-xlcompat-rotate.c

  Log Message:
  -----------
  [PowerPC][Builtin] Allowing __rlwnm to accept a variable as a shift parameter

The builtin __rlwnm is currently constrained to accept only constants
for the shift parameter but the instructions emitted for it have no such
constraint, this patch allows the builtins to accept variable shift.

Reviewed By: NeHuang, amyk

Differential Revision: https://reviews.llvm.org/D111229




More information about the All-commits mailing list