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] Use SImode for return value in atomic_compare_and_swap*


Oleg Endo <oleg.endo@t-online.de> wrote:
> The attached patch changes the atomic_compare_and_swap expander/insn to
> use SImode for the return value instead of QImode.  This is more aligned
> to the other insns which handle the T bit as SImode and avoids some
> unnecessary test instructions in cases where the result of the atomic op
> in the T bit is re-used.
> 
> 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]