Re: Bad and/or stupid code for DImode compares with gcc 4.6.1

2012-10-31 Thread Eric Botcazou
> I see one case that seems really stupid, and one that's just wrong. I'm > thinking that either I have something really flawed with my port's handing > of DImode or that there was a bug in 4.6.1.The port is only failing > about 2100 dejagnu tests (passing 64000+) and a good chunk of the failu

Re: Bad and/or stupid code for DImode compares with gcc 4.6.1

2012-10-31 Thread Alan Lehotsky
So, I found the patch to do_jump_by_parts_greater_rtx() by Eric Botcazou that should address the stupid code and the redundant branch. Should have done a broader search before I wasted email bandwidth... On Oct 31, 2012, at 1:51 PM, Alan Lehotsky wrote: > I'm looking at code generated for a new

Bad and/or stupid code for DImode compares with gcc 4.6.1

2012-10-31 Thread Alan Lehotsky
I'm looking at code generated for a new port of gcc using 4.6.1 and failing execute/950607-2.c with -O0 only The target chip has only 32 bit instructions, so it's using do_jump_by_parts__rtx() to expand the compare. I've set up my .md to use the CCmode. I see one case that seems really stupid