https://llvm.org/bugs/show_bug.cgi?id=31802
Bug ID: 31802 Summary: Count Leading Ones does not work properly on ARMv8 (should lower to CLS) ? Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangb...@nondot.org Reporter: gonzalob...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified One can implement count leading ones (or count leading significant bits) as follows: unsigned cls(unsigned i) { return __builtint_clz(!i); } I would expect this code to generate the cls instruction on aarch64 but i don't seem to be able to generate this instruction at all. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs