[all-commits] [llvm/llvm-project] 2df12f: [ARM][AArch64] Make ACLE __clzl/__clzll return uns...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jul 11 10:42:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2df12f30551e0cb9ecfd49a0cacf929e785c15da
      https://github.com/llvm/llvm-project/commit/2df12f30551e0cb9ecfd49a0cacf929e785c15da
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M clang/lib/Headers/arm_acle.h
    M clang/test/CodeGen/arm_acle.c

  Log Message:
  -----------
  [ARM][AArch64] Make ACLE __clzl/__clzll return unsigned int instead of unsigned long/uint64_t.

Use unsigned long in place of uint32_t for both clz and cls.

As far as I can tell this matches what ACLE defines and what gcc implements.

Noticed while investigating fixing https://github.com/llvm/llvm-project/issues/63113

Reviewed By: tmatheson

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




More information about the All-commits mailing list