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: [RFA} Patch to implement "Switch statement fdo reordering"


On Tue, 2008-04-29 at 13:55 -0500, Edmar Wienskoski-RA8797 wrote:
> Ah, I didn't know that dg-final-use could take this extra condition. Can 
> I write this ?
> /* For now, only power[456] has a target hook definition that will
>    cause the optimization to happen.  Although no altivec code is
>    used, any machine that is altivec capable can be used to run this
>    test case */
> /* { dg-final-use { scan-tree-dump "default case 5 with cost 774 
> promoted" "expand" }
>  { target powerpc*-*-* && powerpc_altivec_ok } } */
> 
> Then I would remove the { dg-do run } altogether, and the test would run 
> in all machines, but the code
> transformation would be checked only on the ones that supports it.

Yes, that's a good idea.

Janis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]