* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
@ 2011-09-22 15:10 ` paolo.carlini at oracle dot com
2011-09-23 15:47 ` devel@the-user.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-22 15:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-22
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
2011-09-22 15:10 ` [Bug middle-end/50481] " paolo.carlini at oracle dot com
@ 2011-09-23 15:47 ` devel@the-user.org
2012-03-29 10:51 ` ptim034 at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: devel@the-user.org @ 2011-09-23 15:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Jonathan Schmidt-Dominé <devel@the-user.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devel@the-user.org
--- Comment #1 from Jonathan Schmidt-Dominé <devel@the-user.org> 2011-09-23 15:30:33 UTC ---
Informative web-page listing some methods:
http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith64BitsDiv
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
2011-09-22 15:10 ` [Bug middle-end/50481] " paolo.carlini at oracle dot com
2011-09-23 15:47 ` devel@the-user.org
@ 2012-03-29 10:51 ` ptim034 at gmail dot com
2021-11-05 13:37 ` f.boesing at gmx dot de
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ptim034 at gmail dot com @ 2012-03-29 10:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Tim Parker <ptim034 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ptim034 at gmail dot com
--- Comment #2 from Tim Parker <ptim034 at gmail dot com> 2012-03-29 10:46:11 UTC ---
I totally don't understand what you talking about =_=
http://www.buyanessay.com/
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (2 preceding siblings ...)
2012-03-29 10:51 ` ptim034 at gmail dot com
@ 2021-11-05 13:37 ` f.boesing at gmx dot de
2022-10-25 12:26 ` carlo at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: f.boesing at gmx dot de @ 2021-11-05 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Frank <f.boesing at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |f.boesing at gmx dot de
--- Comment #7 from Frank <f.boesing at gmx dot de> ---
Would be really useful to have this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (3 preceding siblings ...)
2021-11-05 13:37 ` f.boesing at gmx dot de
@ 2022-10-25 12:26 ` carlo at gcc dot gnu.org
2023-10-02 11:17 ` xry111 at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: carlo at gcc dot gnu.org @ 2022-10-25 12:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Carlo Wood <carlo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlo at gcc dot gnu.org
--- Comment #8 from Carlo Wood <carlo at gcc dot gnu.org> ---
Bump - I need this too ;)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (4 preceding siblings ...)
2022-10-25 12:26 ` carlo at gcc dot gnu.org
@ 2023-10-02 11:17 ` xry111 at gcc dot gnu.org
2024-05-21 15:22 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-10-02 11:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xry111 at gcc dot gnu.org
--- Comment #9 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Useful for LoongArch too. And now we already have bitreverse RTX code since
r14-1586.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (5 preceding siblings ...)
2023-10-02 11:17 ` xry111 at gcc dot gnu.org
@ 2024-05-21 15:22 ` pinskia at gcc dot gnu.org
2024-05-21 15:24 ` pinskia at gcc dot gnu.org
2024-05-21 15:29 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-05-21 15:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Keywords| |missed-optimization
Status|NEW |ASSIGNED
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am going to implement this. and add an optab too.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (6 preceding siblings ...)
2024-05-21 15:22 ` pinskia at gcc dot gnu.org
@ 2024-05-21 15:24 ` pinskia at gcc dot gnu.org
2024-05-21 15:29 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-05-21 15:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The builtins I am going to implement to be similar to clang:
__builtin_bitreverse{8,16,32,64,g}
The g one is not part of clang but will be used for _BitInt types.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/50481] builtin to reverse the bit order
2011-09-22 10:33 [Bug middle-end/50481] New: builtin to reverse the bit order marc.glisse at normalesup dot org
` (7 preceding siblings ...)
2024-05-21 15:24 ` pinskia at gcc dot gnu.org
@ 2024-05-21 15:29 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-05-21 15:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also will add an internal function which will be used for vectorization.
^ permalink raw reply [flat|nested] 10+ messages in thread