Re: [PATCH] rs6000: Fix a mistake in cstore_si_as_di (PR68865, PR68879)

2015-12-14 Thread David Edelsohn
On Mon, Dec 14, 2015 at 2:04 AM, Segher Boessenkool wrote: > convert_move does not know how to zero-extend a constant integer to the > target mode -- simply because it does not know the target mode. As a > result, 32-bit SImode with the high bit set would be

[PATCH] rs6000: Fix a mistake in cstore_si_as_di (PR68865, PR68879)

2015-12-13 Thread Segher Boessenkool
convert_move does not know how to zero-extend a constant integer to the target mode -- simply because it does not know the target mode. As a result, 32-bit SImode with the high bit set would be effectively sign- extended instead of zero-extended. This patch fixes it. Is this okay for trunk?

Re: [PATCH] rs6000: Fix a mistake in cstore_si_as_di (PR68865, PR68879)

2015-12-13 Thread Segher Boessenkool
On Mon, Dec 14, 2015 at 07:04:06AM +, Segher Boessenkool wrote: > convert_move does not know how to zero-extend a constant integer to the > target mode -- simply because it does not know the target mode. That last "target" should be "source", of course. Segher