Re: SH optimized software floating point routines

2010-07-21 Thread Joern Rennecke
Quoting Kaz Kojima : I've got some regressions with "make check" on sh4-unknown-linux-gnu. It looks that all of them are failed with the undefined references to __unorddf2/__unordsf2 when -mieee enabled. That's a bug, then; we shouldn't use a library function there, but the cmpordered[sd]f_t_4

Re: SH optimized software floating point routines

2010-07-21 Thread Kaz Kojima
> I'm trying the attached patch over sh-softfp-20100718-2131 patch. > All regressions go away with it on cross sh4-unknown-linux-gnu, > though the native bootstrap will take a few days more. There are a few warnings in bootstrap: ../trunk/gcc/config/sh/sh.c: In function 'sh_soft_fp_cmp': ../trunk

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Steven Bosscher
On Wed, Jul 21, 2010 at 10:09 PM, Maxim Kuvyrkov wrote: > Cselib can /always/ be used during second scheduling pass Except with the selective scheduler when it works on regions that are not extended basic blocks, I suppose? > and on > single-block regions during the first scheduling pass (after

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Maxim Kuvyrkov
On 7/21/10 6:44 PM, Bernd Schmidt wrote: On 07/21/2010 03:06 PM, Steven Bosscher wrote: 3. GCC now has better alias analysis than it used to, especially with the alias-exporting stuff that exports the GIMPLE points-to analysis results, but also just all the other little things that were contribu

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Steven Bosscher
On Wed, Jul 21, 2010 at 5:14 PM, Jakub Jelinek wrote: >> > If that can't be improved, I think that rather than remove cselib from >> > the scheduler, the question should be: if it's useful, why don't we use >> > it for other schedulers rather than only sched-ebb? >> >> Well, for one thing: It curr

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Jakub Jelinek
On Wed, Jul 21, 2010 at 04:57:10PM +0200, Steven Bosscher wrote: > On Wed, Jul 21, 2010 at 4:44 PM, Bernd Schmidt > wrote: > > On 07/21/2010 03:06 PM, Steven Bosscher wrote: > >> 3. GCC now has better alias analysis than it used to, especially with > >> the alias-exporting stuff that exports the

Re: gcc command line exceeds 8191 when building in XP

2010-07-21 Thread IceColdBeer
Cedric Roux-4 wrote: > > Tim Prince wrote: >> On 7/19/2010 4:13 PM, IceColdBeer wrote: >>> Hi, >>> >>> I'm building a project using GNU gcc, but the command line used to build >>> each source file sometimes exceeds 8191 characters, which is the maximum >>> supported command line length under Wi

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Steven Bosscher
On Wed, Jul 21, 2010 at 4:44 PM, Bernd Schmidt wrote: > On 07/21/2010 03:06 PM, Steven Bosscher wrote: >> 3. GCC now has better alias analysis than it used to, especially with >> the alias-exporting stuff that exports the GIMPLE points-to analysis >> results, but also just all the other little thi

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Bernd Schmidt
On 07/21/2010 03:06 PM, Steven Bosscher wrote: > 3. GCC now has better alias analysis than it used to, especially with > the alias-exporting stuff that exports the GIMPLE points-to analysis > results, but also just all the other little things that were > contributed over the last 10 years (little t

Re: Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Bernd Schmidt
On 07/21/2010 03:06 PM, Steven Bosscher wrote: > It looks like ~9% extra !true_dependence cases are found with cselib, > with is not insignificant: > > situationcalls depends ratio > with_cselib 186764 70463 0.377284 > asis 186764 76375 0.408939 (i.e. no cselib) > > On the o

Revisiting the use of cselib in alias.c for scheduling

2010-07-21 Thread Steven Bosscher
Hello, Back in 2001, GCC could disambiguate almost no MEMs on ia64 because ia64 has no (reg+offs) addressing modes. Bernd added a trick to alias and to sched-ebb to use cselib, to substitute a reg address with a reg+offs address recorded by cselib (see http://gcc.gnu.org/viewcvs?view=revision&revi

Re: Reload problems with only one base reg for "base + offset" addressing mode

2010-07-21 Thread redriver jiang
Hi, You mean I should define insn like this: (define_insn "*iorqi3_imm" [(set (mem:QI (match_operand:HI 0 "register_operand" "b")) (ior:QI (mem:QI (match_operand:HI 1 "register_operand" "b") (mem:QI (plus: HI (match_operand:HI 2 "register_operand" "f")

Re: SH optimized software floating point routines

2010-07-21 Thread Christian Bruel
Hi Kaz, Kaz Kojima wrote: BTW, it looks that softfp __unord?f2 routines check signaling NaNs only. This makes __builtin_isnan return false for quiet NaNs for which current fp-bit ones return true when -mieee enabled. Perhaps that change of behavior might be OK for software FP. I use the at