Re: Optimizing bit extract

2014-02-14 Thread Richard Biener
On Fri, Feb 14, 2014 at 2:23 PM, Allan Sandfeld Jensen wrote: > Hello gcc > > I have been looking at optimizations of pixel-format conversion recently and > have noticed that gcc does take advantage of SSE4a extrq, BMI1 bextr TBM > bextri or BMI2 pext instructions when it could be useful. > > As f

Optimizing bit extract

2014-02-14 Thread Allan Sandfeld Jensen
Hello gcc I have been looking at optimizations of pixel-format conversion recently and have noticed that gcc does take advantage of SSE4a extrq, BMI1 bextr TBM bextri or BMI2 pext instructions when it could be useful. As far as I can tell it should not be that hard. A bextr expression can typi