Re: Wider modes for partial int modes

2012-06-11 Thread Bernd Schmidt
On 06/09/2012 01:58 AM, Mike Stump wrote: On Jun 8, 2012, at 4:11 PM, Mike Stump wrote: On Apr 17, 2012, at 2:08 PM, Bernd Schmidt wrote: This patch enables GET_MODE_WIDER_MODE for MODE_PARTIAL_INT (by setting the wider mode to the one the partial mode is based on), which is useful for the port

Re: Wider modes for partial int modes

2012-06-08 Thread Mike Stump
On Jun 8, 2012, at 4:11 PM, Mike Stump wrote: > On Apr 17, 2012, at 2:08 PM, Bernd Schmidt wrote: >> This patch enables GET_MODE_WIDER_MODE for MODE_PARTIAL_INT (by setting >> the wider mode to the one the partial mode is based on), which is useful >> for the port I'm working on: I can avoid defini

Re: Wider modes for partial int modes

2012-06-08 Thread Mike Stump
On Apr 17, 2012, at 2:08 PM, Bernd Schmidt wrote: > This patch enables GET_MODE_WIDER_MODE for MODE_PARTIAL_INT (by setting > the wider mode to the one the partial mode is based on), which is useful > for the port I'm working on: I can avoid defining operations on the > partial modes. I think this

Re: Wider modes for partial int modes

2012-04-18 Thread Richard Henderson
On 04/17/2012 04:08 PM, Bernd Schmidt wrote: > * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT. > * expr.c (convert_move): Honor unsignedp when extending partial int > modes. > * genmodes.c (power_of_two_p, regular_mode, make_complex_modes, > emit_mod

Wider modes for partial int modes

2012-04-17 Thread Bernd Schmidt
This patch enables GET_MODE_WIDER_MODE for MODE_PARTIAL_INT (by setting the wider mode to the one the partial mode is based on), which is useful for the port I'm working on: I can avoid defining operations on the partial modes. Also, convert_modes is changed so that unsignedp is taken into account