+ if( i_edx & 0x04000000 )
+ {
+# if defined(CAN_COMPILE_SSE)
+ /* We test if OS supports the SSE instructions */
+ psz_capability = "SSE2";
+ i_illegal = 0;
+
+ if( setjmp( env ) == 0 )
+ {
+ /* Test a SSE2 instruction */
+ __asm__ __volatile__ ( "movupd %%xmm0, %%xmm0\n" : : );
+ }
+
+ if( i_illegal == 0 )
+ {
+ i_capabilities |= CPU_CAPABILITY_SSE2;
+ }
+# endif
+ }
+