Re: [wide-int] Another tweak to convert_modes

2013-11-02 Thread Kenneth Zadeck
On 11/02/2013 06:48 AM, Richard Sandiford wrote: It turns out that when doing a vector shift by 2, the optab routine passes (const_int 2) to convert_modes with oldmode set to the mode of the shift (e.g. something like V8HI). When the target mode is a real integer mode like SImode, mainline just

[wide-int] Another tweak to convert_modes

2013-11-02 Thread Richard Sandiford
It turns out that when doing a vector shift by 2, the optab routine passes (const_int 2) to convert_modes with oldmode set to the mode of the shift (e.g. something like V8HI). When the target mode is a real integer mode like SImode, mainline just ignores that oldmode and returns a (const_int 2) re