Re: expansion of vector shifts...

2013-02-13 Thread David Miller
From: Richard Biener Date: Wed, 13 Feb 2013 12:15:13 +0100 > On Tue, Feb 12, 2013 at 11:31 PM, David Miller wrote: >> Maybe what we really mean to do here is check both op1 and SUBREG_REG >> (op1) against SCALAR_INT_MODE_P instead of INTEGRAL_MODE_P? > > Yes. Ok, I'll commit this after doing s

Re: expansion of vector shifts...

2013-02-13 Thread Richard Biener
On Tue, Feb 12, 2013 at 11:31 PM, David Miller wrote: > From: David Miller > Date: Fri, 16 Nov 2012 00:33:05 -0500 (EST) > >> From: Richard Sandiford >> Date: Mon, 29 Oct 2012 10:14:53 + >> >>> ...given that the code is like you say written: >>> >>> if (SHIFT_COUNT_TRUNCATED) >>> { >>>

Re: expansion of vector shifts...

2013-02-12 Thread David Miller
From: David Miller Date: Fri, 16 Nov 2012 00:33:05 -0500 (EST) > From: Richard Sandiford > Date: Mon, 29 Oct 2012 10:14:53 + > >> ...given that the code is like you say written: >> >> if (SHIFT_COUNT_TRUNCATED) >> { >> if (CONST_INT_P (op1) >> ... >> else if (GET_

Re: expansion of vector shifts...

2012-11-15 Thread David Miller
From: Richard Sandiford Date: Mon, 29 Oct 2012 10:14:53 + > ...given that the code is like you say written: > > if (SHIFT_COUNT_TRUNCATED) > { > if (CONST_INT_P (op1) > ... > else if (GET_CODE (op1) == SUBREG > && subreg_lowpart_p (op1) > &

Re: expansion of vector shifts...

2012-10-29 Thread Richard Sandiford
David Miller writes: > On sparc a simple test like (from the PR tree-optimization/53410 testcase): > > > typedef int V __attribute__((vector_size (4 * sizeof (int; > typedef unsigned int W __attribute__((vector_size (4 * sizeof (int; > > void > f10 (W *p, W *q) > { >

expansion of vector shifts...

2012-10-27 Thread David Miller
On sparc a simple test like (from the PR tree-optimization/53410 testcase): typedef int V __attribute__((vector_size (4 * sizeof (int; typedef unsigned int W __attribute__((vector_size (4 * sizeof (int; void f10 (W *p, W *q) { *p = *p < (((const W) { 1U, 1U, 1U, 1U