Re: [PATCH] arm.md: Use the revsh and rev16 instructions for BSWAP:HI RTL in armv6 and up

2012-08-23 Thread Christophe Lyon
On 19.04.2012 09:05, Ramana Radhakrishnan wrote: On 16 April 2012 20:35, Louis Kruger wrote: This patch teaches the arm target about the rev16 and revsh instructions which can efficiently execute the recently added __builtin_bswap16() function (BSWAP:HI in RTL) These instructions are available

Re: [PATCH] arm.md: Use the revsh and rev16 instructions for BSWAP:HI RTL in armv6 and up

2012-04-19 Thread Ramana Radhakrishnan
On 16 April 2012 20:35, Louis Kruger wrote: > This patch teaches the arm target about the rev16 and revsh > instructions which can > efficiently execute the recently added __builtin_bswap16() function > (BSWAP:HI in RTL) > These instructions are available in thumb and arm modes on armv6 > architec

[PATCH] arm.md: Use the revsh and rev16 instructions for BSWAP:HI RTL in armv6 and up

2012-04-16 Thread Louis Kruger
This patch teaches the arm target about the rev16 and revsh instructions which can efficiently execute the recently added __builtin_bswap16() function (BSWAP:HI in RTL) These instructions are available in thumb and arm modes on armv6 architecture and up. Before this patch, short swaps16(short x)