https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93176

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2020-Septemb
                   |                            |er/553661.html
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |bergner at gcc dot 
gnu.org
                 CC|                            |bergner at gcc dot gnu.org

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #2)
> When you want the bits from bit MB to ME (inclusive) set, you can just do
> 
>   li t,-1
>   rldic d,T,MB,63-ME
> 
> (bit # 0 is the high bit; can also do wrap-around masks this way).

I submitted a patch that implements this idea.

Reply via email to