This is the mail archive of the
mailing list for the GCC project.
Re: [PING*2][PATCH] Extend mode-switching to support toggle (1/2)
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: Christian Bruel <christian dot bruel at st dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jeff Law <law at redhat dot com>, Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>, Oleg Endo <oleg dot endo at t-online dot de>
- Date: Mon, 12 May 2014 13:51:03 +0100
- Subject: Re: [PING*2][PATCH] Extend mode-switching to support toggle (1/2)
- Authentication-results: sourceware.org; auth=none
- References: <535E0C86 dot 400 at st dot com> <537089D8 dot 8040106 at st dot com> <53708F1D dot 1080308 at st dot com> <CAMqJFCpxG2RyOZ0NsYiBV5PUU4A+8kWaq22am+GR=e22i-uf0g at mail dot gmail dot com> <5370BB9D dot 1090803 at st dot com>
On 12 May 2014 13:16, Christian Bruel <email@example.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.