[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #8 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3c89c41991d8e84d28d3aba22bb06b2712a29523 commit r15-3272-g3c89c41991d8e84d28d3aba22bb06b2712a29523 Author: Andrew Pinski Date: Mo

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Note after r15-2946-gfcc3af99498804, for: > ``` > int fc(unsigned char a) > { > return __builtin_popcountg(a) == 1; > } > ``` > > Without CSSC, GCC produces:

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #4 from Andrew Pinski --- Note after r15-2946-gfcc3af99498804, for: ``` int fc(unsigned char a) { return __builtin_popcountg(a) == 1; } ``` Without CSSC, GCC produces: ``` and w0, w0, 255 fmovd31, x0

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Interesting: > ``` > int h1(unsigned a) > { > return __builtin_popcountg(a) == 1; > } > ``` > works. > > > Anyways I will be adding POPCOUNT's rtl cos

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-03-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-03-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1