This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/38525] sse2(int16) code fails with -O3



------- Comment #4 from hjl dot tools at gmail dot com  2008-12-14 19:57 -------
(In reply to comment #3)
> (In reply to comment #2)
> 
> > /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include/pmmintrin.h: In
> > function �float __vector__ _mm_addsub_ps(float __vector__, float __vector__)�:
> 
> g++ -O3 -fpreprocessed u-array.ii 
> In file included from /home/lvv/p/lvv/sse.h:23,
>                  from /home/lvv/p/lvv/array.h:35,
>                  from u-array.cc:10:
> /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include/pmmintrin.h: In
> function �float __vector__ _mm_addsub_ps(float __vector__, float __vector__)�:
> /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include/pmmintrin.h:53:
> error: �__builtin_ia32_addsubps� was not declared in this scope
> [...]
> 

You need to use -march=core2 to enable SSSE3.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl dot tools at gmail dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38525


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]