Re: [SH] PR 52933 - Use div0s insn for integer sign comparisons

2012-08-14 Thread Kaz Kojima
Oleg Endo 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,-m

[SH] PR 52933 - Use div0s insn for integer sign comparisons

2012-08-13 Thread Oleg Endo
Hello, 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