Re: Difference between vec_shl_ and ashl3

2009-02-10 Thread Paolo Bonzini
Bingfeng Mei wrote: > Hello, > Could anyone explain to me what is difference between > vec_shl_ and ashl3 patterns? It seems to me > that both shift a vector operand 1 with scalar operand 2. I tried to > understand some targets' implemenation, e.g., ia64 as follows, and

Re: Difference between vec_shl_ and ashl3

2009-02-10 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > Thanks for prompt reply. Just out of curiosity. Isn't this naming > convention for shift instructions inconsistent with other patterns? > For example, we can define add3 and GCC will > automatically use it by vectorization or in plus expression of two > vector types. Why

RE: Difference between vec_shl_ and ashl3

2009-02-10 Thread Bingfeng Mei
ecial names? Bingfeng > -Original Message- > From: Ian Lance Taylor [mailto:i...@google.com] > Sent: 10 February 2009 14:31 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: Difference between vec_shl_ and > ashl3 > > "Bingfeng Mei" writes:

Re: Difference between vec_shl_ and ashl3

2009-02-10 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > Could anyone explain to me what is difference between > vec_shl_ and ashl3 patterns? It seems to me > that both shift a vector operand 1 with scalar operand 2. The difference is that with a vector mode gcc will look for the standard name vec_shl_M

Difference between vec_shl_ and ashl3

2009-02-10 Thread Bingfeng Mei
Hello, Could anyone explain to me what is difference between vec_shl_ and ashl3 patterns? It seems to me that both shift a vector operand 1 with scalar operand 2. I tried to understand some targets' implemenation, e.g., ia64 as follows, and cannot grasp their difference. Does the &