[Issue 6829] Unsigned rotate standard function in Phobos
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 10 09:29:53 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6829
--- Comment #17 from bearophile_hugs at eml.cc 2013-07-10 09:29:51 PDT ---
(In reply to comment #15)
> But to give you a comparison.
>
> // LDC
>
> __D5temp210__T3rolThZ3rolFNaNbNfxhxkZh:
> pushl %esi
> movzbl 8(%esp), %edx
> movb %al, %cl
> movl %edx, %esi
> shll %cl, %esi
> movl $8, %ecx
> subl %eax, %ecx
> shrl %cl, %edx
> orl %esi, %edx
> movzbl %dl, %eax
> popl %esi
> ret $4
>
> vs.
>
> // GDC
>
> __D5temp210__T3rolThZ3rolFNaNbNfxhxkZh:
> movl %edi, %eax
> movl %esi, %ecx
> rolb %cl, %al
> ret
I have asked in the LLVM IRC channel, and it seems a limit/problem of the llvm
back-end. So maybe it's worth writing an LLVM enhancement request.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list