[PATCH] Implement __clzdi2 and __clzsi2 for early ARM architectures that lack the clz instruction
Joerg Sonnenberger
joerg at NetBSD.org
Wed Jan 29 02:28:25 PST 2014
================
Comment at: lib/arm/clzdi2.S:38
@@ +37,3 @@
+#else
+ /* Assumption: n != 0 */
+
----------------
Saleem Abdulrasool wrote:
> I dont see how this assumption holds.
It is part of the interface contract:
> -- Built-in Function: int __builtin_clz (unsigned int x)
> Returns the number of leading 0-bits in X, starting at the most
> significant bit position. If X is 0, the result is undefined.
http://llvm-reviews.chandlerc.com/D2630
More information about the llvm-commits
mailing list