Re: [PATCH,rs6000] Add __VEC_ELEMENT_REG_ORDER__ builtin define for PowerPC

2014-08-20 Thread David Edelsohn
2014-08-15 Bill Schmidt wschm...@vnet.ibm.com * conifg/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide builtin define __VEC_ELEMENT_REG_ORDER__. Okay. Thanks, David

Re: [PATCH,rs6000] Add __VEC_ELEMENT_REG_ORDER__ builtin define for PowerPC

2014-08-20 Thread Alan Lawrence
Completely as an aside: this makes me wonder, whether having and using a similar macro _inside_ gcc, i.e. for targets to specify the ordering of elements within a vector independently of BYTES_BIG_ENDIAN, might be a good thing? --Alan Bill Schmidt wrote: Hi, This adds a macro to indicate

Re: [PATCH,rs6000] Add __VEC_ELEMENT_REG_ORDER__ builtin define for PowerPC

2014-08-20 Thread Bill Schmidt
On Wed, 2014-08-20 at 17:28 +0100, Alan Lawrence wrote: Completely as an aside: this makes me wonder, whether having and using a similar macro _inside_ gcc, i.e. for targets to specify the ordering of elements within a vector independently of BYTES_BIG_ENDIAN, might be a good thing?

[PATCH,rs6000] Add __VEC_ELEMENT_REG_ORDER__ builtin define for PowerPC

2014-08-15 Thread Bill Schmidt
Hi, This adds a macro to indicate the order in which vector elements appear in a register on PowerPC. Elements may appear in right-to-left order for little endian, or in left-to-right order for big endian and when -maltivec=be is selected for little endian. The same macro is being implemented