src/scale_mmx64.c cannot be compiled with clang

Issue #94 resolved
Joshua Root
created an issue

Building pygame on OS X 10.7.2 with Xcode 4.2 and a python compiled with clang fails like this: {{{ src/scale_mmx64.c:424:27: error: invalid instruction mnemonic 'movsxl' }}} I'm not an x86_64 asm expert, but I think the attached patch should be correct.

Comments (9)

  1. Lenard Lindstrom
    • changed status to new

    The patch looks good. MOVSLQ is the AT&T assembler instruction to move a 32 bit value into a 64 bit register with sign extension, which is what we want. Why the 32 bit RAX register is used instead of 32 bit EAX is a mystery to me thought.

  2. Log in to comment