>From fb1af7167de85284bed57c815a6112ba97999b9c Mon Sep 17 00:00:00 2001 From: Josh DuBois Date: Tue, 28 Apr 2015 09:20:13 -0500 Subject: [PATCH] Avoid movs between rcx, rdx and xmm registers to allow compilation with Apple's assembler. --- dlls/ntdll/relay.c | 8 ++++---- dlls/oleaut32/typelib.c | 8 ++++---- dlls/rpcrt4/ndr_stubless.c | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index 57ad2e1..0ba2731 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -624,10 +624,10 @@ __ASM_GLOBAL_FUNC( relay_call, "movq 8(%rsp),%rdx\n\t" "movq 16(%rsp),%r8\n\t" "movq 24(%rsp),%r9\n\t" - "movq %rcx,%xmm0\n\t" - "movq %rdx,%xmm1\n\t" - "movq %r8,%xmm2\n\t" - "movq %r9,%xmm3\n\t" + "movq 0(%rsp),%xmm0\n\t" + "movq 8(%rsp),%xmm1\n\t" + "movq 16(%rsp),%xmm2\n\t" + "movq 24(%rsp),%xmm3\n\t" "callq *%rax\n\t" /* trace the return value */ "leaq -0x30(%rbp),%rsp\n\t" diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b8325c0..29bab33 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -6456,10 +6456,10 @@ __ASM_GLOBAL_FUNC( call_method, "movq 8(%rsp),%rdx\n\t" "movq 16(%rsp),%r8\n\t" "movq 24(%rsp),%r9\n\t" - "movq %rcx,%xmm0\n\t" - "movq %rdx,%xmm1\n\t" - "movq %r8,%xmm2\n\t" - "movq %r9,%xmm3\n\t" + "movq 0(%rsp),%xmm0\n\t" + "movq 8(%rsp),%xmm1\n\t" + "movq 16(%rsp),%xmm2\n\t" + "movq 24(%rsp),%xmm3\n\t" "callq *%rax\n\t" "leaq -16(%rbp),%rsp\n\t" "popq %rdi\n\t" diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 030bfb3..c9d9930 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -1077,10 +1077,10 @@ __ASM_GLOBAL_FUNC( call_server_func, "movq 8(%rsp),%rdx\n\t" "movq 16(%rsp),%r8\n\t" "movq 24(%rsp),%r9\n\t" - "movq %rcx,%xmm0\n\t" - "movq %rdx,%xmm1\n\t" - "movq %r8,%xmm2\n\t" - "movq %r9,%xmm3\n\t" + "movq 0(%rsp),%xmm0\n\t" + "movq 8(%rsp),%xmm1\n\t" + "movq 16(%rsp),%xmm2\n\t" + "movq 24(%rsp),%xmm3\n\t" "callq *%rax\n\t" "leaq -16(%rbp),%rsp\n\t" /* restore stack */ "popq %rdi\n\t" -- 1.8.5.2 (Apple Git-48)