This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING*2][PATCH] Extend mode-switching to support toggle (1/2)


On Mon, 2014-05-12 at 13:51 +0100, Joern Rennecke wrote:
> On 12 May 2014 13:16, Christian Bruel <christian.bruel@st.com> wrote:
> 
> > Just for my curiosity, which other targets have multi-way toggling
> > support ?
> 
> The epiphany has, sort of: you read a control register, AND and/or OR
> some mask(s) to the value,
> and write it back.
> If we knew the previous mode, we might elide and AND or an OR.
> 
> I think this is actually quite a common issue.

This is the same as changing/setting the FP modes (PR, SZ) on SH while
preserving the other FPSCR bits, or did I miss something?

Cheers,
Oleg



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]