[FFmpeg-devel] Anybody has a Core 2? [PATCH] Small SSSE3 optimization

Zuxy Meng zuxy.meng
Tue May 8 18:02:32 CEST 2007


Hi,

2007/5/8, Mike Melanson <mike at multimedia.cx>:
> Zuxy Meng wrote:
> > Hi,
> >
> > Attached patch makes use of SSSE3 instruction pabsw to calculate the
> > absolute value of packed words. Just for fun. And I don't have a SSSE3
> > capable CPU so hopefully someone with a Core 2 can help test it to
> > ensure it doesn't break anything (better with benchmarks of course:-)
> > ).
>
> I have a Core 2 machine. However, what toolchain do I need in order to
> support this instruction set? The assembler does not recognize pabsw. E.g:
>
> /tmp/ccNd2neI.s: Assembler messages:
> /tmp/ccNd2neI.s:6323: Error: no such instruction: `pabsw %mm0,%mm0'
> /tmp/ccNd2neI.s:6324: Error: no such instruction: `pabsw %mm1,%mm1'
>
> $ cat /proc/cpuinfo
> [...]
> model name      : Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
> [...]
>
> $ gcc --version
> gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
> [...]
>
> $ as --version
> GNU assembler 2.16.1

Maybe you should try binutils 2.17:-) Mine is 'GNU assembler 2.17.50
20060824' and it works.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6




More information about the ffmpeg-devel mailing list