]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Adjust Muls64x32s64 constraints to allow PIC
authorVMware, Inc <>
Mon, 20 Sep 2010 18:10:27 +0000 (11:10 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 20 Sep 2010 18:10:27 +0000 (11:10 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/vm_basic_asm_x86.h

index 45f37f941d5d5ff3b451c97122333df88e7c7640..180d865a3900ca6b7b8b7c8fda98c0250083c18e 100644 (file)
@@ -502,7 +502,7 @@ Muls64x32s64(int64 multiplicand, uint32 multiplier, uint32 shift)
            "shrdl %%edx, %%eax\n\t"   // result = hi(p2):hi(p1):lo(p1) >> shift
            "shrdl %1, %%edx\n"
         "3:\n\t"
-           : "=A" (result), "=&r" (tmp1), "=&r" (tmp2)
+           : "=A" (result), "=&r" (tmp1), "=&rm" (tmp2)
            : "0" (multiplicand), "rm" (multiplier), "c" (shift)
            : "cc");
    return result;