hi, i was trying to enable the mmx code on mac os x. to get to that point one has to replace some inline assembler code: .balign 16 -> .p2align 4 and replace .rept .. .endr with #defines. but to makes things more complicated apple's GAS does not support movsx instructions and thus the following line does not work: " movsx %%di, %%edi \n\t" [ more details at https://trac.xiph.org/browser/trunk/theora/lib/ x86_32/dsp_mmx.c#L443 ] if anyone has an idea how that could be replaced or written in a way that it works on OS X, please let me know. making asm optimization available for os x intel would be nice. j -------------- next part -------------- A non-text attachment was scrubbed... Name: theora_mactel.patch Type: application/octet-stream Size: 25170 bytes Desc: not available Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20060621/8c7543fe/theora_mactel.obj
Felipe Portavales Goldstein
2006-Jun-21 13:10 UTC
[theora-dev] Theora MMX and Mac OS X Intel
Maybe , instead a MOV, you could do an ADD with a Zero immediate something like that: ADD di, edi, 0 I dont know MMX assembly code, so I dont know if it is possible. just an idea... On 6/21/06, j@v2v.cc <j@v2v.cc> wrote:> hi, > > i was trying to enable the mmx code on mac os x. > to get to that point one has to replace some inline assembler code: > .balign 16 -> .p2align 4 > and replace .rept .. .endr with #defines. > > but to makes things more complicated apple's GAS does not support > movsx instructions and thus the following line does not work: > " movsx %%di, %%edi \n\t" > [ more details at https://trac.xiph.org/browser/trunk/theora/lib/ > x86_32/dsp_mmx.c#L443 ] > > if anyone has an idea how that could be replaced or written in a way > that it works > on OS X, please let me know. making asm optimization available for os > x intel would be nice. > > j > > > > _______________________________________________ > theora-dev mailing list > theora-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/theora-dev > > > >-- ________________________________________ Felipe Portavales <portavales@gmail.com> Undergraduate Student - IC-UNICAMP Computer Systems Laboratory http://www.lsc.ic.unicamp.br
>>>>> "j" == j <j@v2v.cc> writes:> but to makes things more complicated apple's GAS does not support > movsx instructions and thus the following line does not work > [..]AFAIK in AT&T asm syntax, that command should read "moswl". (two size suffixes, have a look at node i386-Mnemonics in the info file) regards, David -- GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40