GCC/GLIBC and non-temporal instructions

Ian Lance Taylor iant@google.com
Tue Jan 3 19:24:00 GMT 2012


Sergey Oboguev <oboguev@yahoo.com> writes:

> The question is whether there is any GCC/runtime policy on non-temporal 
> SSE/3DNow instructions?

As far as I know gcc will never generate any non-temporal instructions,
except if the programmer uses the special intrinsic functions which
generate them.  If the programmer uses those intrinsic functions, she or
he is entirely responsible for issuing the required fence instructions,
via intrinsic functions like _mm_lfence.

So the GCC/runtime policy on non-temporal instructions is that using
them correctly is entirely up to the programmer.

Ian



More information about the Gcc mailing list