Displaying 2 results from an estimated 2 matches for "6a1f68df".
2012 Jul 29
0
[LLVMdev] rotate
....co.uk> wrote:
...
> It would be nice to have a __builtin_rotl family in clang, in
> my opinion, but it would need back-end support from llvm.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120729/6a1f68df/attachment.html>
2012 Jul 29
3
[LLVMdev] rotate
> *NOTE* IIRC compiling this with -O0 on x86-64 can yield the wrong result
> since clang will emit shifts and on intel shifts are mod the register
> size [...snip...]
I remember finding the same thing (although I haven't tried it on a recent
clang version) and what I wondered was whether there was mileage in having
an explicit intrinsic for rotation (like there is for bit counting,