Re: [patch] Fix PR target/62631

2015-02-05 Thread Jeff Law
On 02/05/15 08:53, Eric Botcazou wrote: Hi, this is the failure of gcc.dg/tree-ssa/ivopts-lt-2.c on SPARC 64-bit, but I think that the problem is actually generic: get_shiftadd_cost only calls shiftadd_cost to get the cost of a "shift-add", which is actually a multiply by a power-of-2 operation.

[patch] Fix PR target/62631

2015-02-05 Thread Eric Botcazou
Hi, this is the failure of gcc.dg/tree-ssa/ivopts-lt-2.c on SPARC 64-bit, but I think that the problem is actually generic: get_shiftadd_cost only calls shiftadd_cost to get the cost of a "shift-add", which is actually a multiply by a power-of-2 operation. Since SPARC doesn't have a lea-like i