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: [SH] Add atomic_exchange patterns


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


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