Re: Add utility functions for rtx broadcast/duplicate constants

2015-08-20 Thread Jeff Law
On 08/20/2015 04:34 AM, Richard Sandiford wrote: Several pieces of code want to know whether all elements of a CONST_VECTOR are equal, and I'm about to add some more to simplify-rtx.c. This patch adds some utility functions for that. I don't think we're really helping ourselves by having the sh

Add utility functions for rtx broadcast/duplicate constants

2015-08-20 Thread Richard Sandiford
Several pieces of code want to know whether all elements of a CONST_VECTOR are equal, and I'm about to add some more to simplify-rtx.c. This patch adds some utility functions for that. I don't think we're really helping ourselves by having the shift amount in "v16qi << 3" be: (const_vector:V