this code is correct but strange looking ;-)
authorChris Lattner <sabre@nondot.org>
Wed, 27 Feb 2008 05:48:44 +0000 (05:48 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Feb 2008 05:48:44 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47659 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README-X86-64.txt

index 59cecdf4f2cc1df8f42bc53f7b459726be46cfa3..efe3b73da5b1d9f4dbbc484c7500d0fec63d98d9 100644 (file)
@@ -243,8 +243,7 @@ compiles to this code:
 _a:
        subq    $8, %rsp
        cvttsd2siq      %xmm0, %rax
-       movl    $4294967295, %ecx
-       andq    %rcx, %rax
+       movl    %eax, %eax
        cvtsi2sdq       %rax, %xmm0
        addq    $8, %rsp
        ret