[SH] PR 52933 - Use div0s insn for integer sign comparisons
Kaz Kojima
kkojima@rr.iij4u.or.jp
Tue Aug 14 11:32:00 GMT 2012
Oleg Endo <oleg.endo@t-online.de> wrote:
> This patch adds basic support for utilizing the SH div0s instruction to
> simplify some integer sign comparisons such as '(a < 0) == (b < 0)'.
> Tested on rev 190332 with
> make -k check RUNTESTFLAGS="--target_board=sh-sim
> \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}"
>
> and no new failures.
> OK?
OK.
Regards,
kaz
More information about the Gcc-patches
mailing list