This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: exposing SH's fpscr support
- From: DJ Delorie <dj at redhat dot com>
- To: joern dot rennecke at st dot com
- Cc: dave dot korn at artimi dot com, gcc at gcc dot gnu dot org
- Date: Wed, 3 May 2006 14:40:52 -0400
- Subject: Re: exposing SH's fpscr support
- References: <4458BBE9.1070309@st.com>
> Well, if changing fpscr and fpscr_values at the same time was your
> only concern, you could just call __set_fpscr. That puts the burden
> of preserving the SZ / PR bit in fpscr on the caller, though.
> (i.e. read the current value of fpscr, modify the bits you want changed,
> place that changed value into r4, and call __set_fpscr).
Perhaps a helper function in libgcc that has the API I originally
suggested, which calls __set_fpscr and preserves the right bits?