This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC/GLIBC and non-temporal instructions
- From: Ian Lance Taylor <iant at google dot com>
- To: Sergey Oboguev <oboguev at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 03 Jan 2012 11:24:15 -0800
- Subject: Re: GCC/GLIBC and non-temporal instructions
- References: <1325615881.82937.YahooMailRC@web181116.mail.ne1.yahoo.com>
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