Implement clzdi2 and clzsi2 for early ARM architectures that lack the clz instruction. For __clzdi2 special care is needed for dealing with Little Endian vs Big Endian.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/arm/clzdi2.S | ||
---|---|---|
36 ↗ | (On Diff #6688) | Should this bx also be handled similarly for uniformity? clz being present is indicative of ARMv5T+ so bx is obviously available, but, the uniformity might be nice (since the cost is 0). |
38 ↗ | (On Diff #6688) | I dont see how this assumption holds. |
64 ↗ | (On Diff #6688) | I believe that the IMM prefix unnecessary in unified syntax. |
66 ↗ | (On Diff #6688) | Can you change the name of block to upper case to indicate that it is a macro? |
lib/arm/clzdi2.S | ||
---|---|---|
38 ↗ | (On Diff #6688) | It is part of the interface contract:
|