Oleg Endo <[email protected]> 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