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
Paths
| Differential D154910
[ARM][AArch64] Make ACLE __clzl/__clzll return unsigned int instead of unsigned long/uint64_t. ClosedPublic Authored by craig.topper on Jul 10 2023, 5:20 PM.
Details Summary 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
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 11 2023, 2:00 AM This revision was landed with ongoing or failed builds.Jul 11 2023, 10:42 AM Closed by commit rG2df12f30551e: [ARM][AArch64] Make ACLE __clzl/__clzll return unsigned int instead of unsigned… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 539188 clang/lib/Headers/arm_acle.h
clang/test/CodeGen/arm_acle.c
|