This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [SH] Add atomic_exchange patterns
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: oleg dot endo at t-online dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 09:47:42 +0900 (JST)
- Subject: Re: [SH] Add atomic_exchange patterns
- References: <1330302953.2929.111.camel@yam-132-YW-E178-FTW>
Oleg Endo <oleg.endo@t-online.de> wrote:
> The attached patch adds atomic_exchange patterns to the SH target.
> This results in slightly better generated code compared to the default
> compare_and_swap loop that is generated if atomic_exchange patterns are
> absent.
>
> Tested against rev 184582 with
>
> make -k check RUNTESTFLAGS="--target_board=sh-sim
> \{-m2/-ml/-msoft-atomic,
> -m2/-mb/-msoft-atomic,
> -m2a-single/-mb/-msoft-atomic,
> -m4-single/-ml/-msoft-atomic,
> -m4-single/-mb/-msoft-atomic,
> -m4a-single/-ml/-msoft-atomic,
> -m4a-single/-mb/-msoft-atomic}"
>
> and no new failures.
OK for 4.8.
Regards,
kaz