[Theora-dev] [PATCH] promised MMX patches rc1

Rudolf Marek R.Marek at sh.cvut.cz
Sun Apr 10 23:18:08 PDT 2005


Hello,

It seems gcc used default 64bit registers and I used 32bit ones in my
code. This needs to be fixed. I think you can compile without -DOC_X86ASM

Regards

Rudolf

On Sun, 10 Apr 2005, Ralph Giles wrote:

> Ruik,
>
> Forgive my ignorance, but I was trying to get your patches (or rather,
> current svn of theora-exp) to compile on a x86_64 (recent Xeon) machine,
> but gas dies on the inline assembly. Any idea what's going on here? I
> haven't paid attention to x86 assembly in a long, long time. :)
>
> gcc -I../include `sdl-config --cflags` -D_REENTRANT -O3 -fforce-addr
> -fomit-frame-pointer -DOC_X86ASM -c -o objs/x86/mmxstate.o
> ../lib/x86/mmxstate.c
> /tmp/ccGX8KWl.s: Assembler messages:
> /tmp/ccGX8KWl.s:47: Error: `(%rdx,%r8d)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:48: Error: `(%rdx,%r8d,2)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:49: Error: `(%rdx,%esi)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:51: Error: `(%rax,%r11d)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:52: Error: `(%rdx,%r8d,4)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:53: Error: `(%rax,%r11d,2)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:54: Error: `(%rax,%edi)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:55: Error: `(%rax,%r11d,4)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:57: Error: `(%rdx,%r8d)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:58: Error: `(%rdx,%r8d,2)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:59: Error: `(%rdx,%esi)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:61: Error: `(%rax,%r11d)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:62: Error: `(%rax,%r11d,2)' is not a valid base/index expression
> /tmp/ccGX8KWl.s:63: Error: `(%rax,%edi)' is not a valid base/index expression
> make: *** [objs/x86/mmxstate.o] Error 1
>
>
> I've attached the output of gcc -S as well, in case that helps.
>
>  -r
>


More information about the Theora-dev mailing list