Re: [patch] Add generic __builtin_bswap16 support

2012-04-10 Thread Richard Guenther
On Mon, Apr 9, 2012 at 11:43 PM, Eric Botcazou wrote: > Hi, > > this adds generic support for __builtin_bswap16 (only PowerPC has it for now). > It is mapped to the bswap optab in HImode, whose implementation is as follows: >  - if a bswaphi2 pattern is present (PowerPC), it is directly used; or e

[patch] Add generic __builtin_bswap16 support

2012-04-09 Thread Eric Botcazou
Hi, this adds generic support for __builtin_bswap16 (only PowerPC has it for now). It is mapped to the bswap optab in HImode, whose implementation is as follows: - if a bswaphi2 pattern is present (PowerPC), it is directly used; or else - if a rotlhi2/rotrhi2 pattern is present (x86), it is di