detection of SSE3 support in configure.ac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 6 Dec 2011 17:06:11 -0600, "Pierre-Louis Bossart"
<pierre-louis.bossart at linux.intel.com> wrote:
>> But you must somehow ensure that all code compiled with -msse3, NOT
>> ONLY the inline assembly, is only ever run on SSE3-capable processors. 
>> Without the target function attribute from GCC 4.4, this becomes a
tough
>> requirement for the build system.
> 
> There's no assembly in the code, we used primitives such as _mm_mul_ps()
> which are natively supported by Gcc.

Using instrinsics might avoid the impedance mismatch between the compiler
and the assembler.

> The -msse3 flag is only used for the low-level code, there should be no
> conflict; if SSE3 is not supported this code is never called.

Sure. You just have to be very careful to restrict -msse3 to SSE3-only
code.

-- 
R?mi Denis-Courmont
http://www.remlab.net/


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux