Re: [PATCH] expand: Use the correct mode for store flags for popcount [PR116480]

2024-08-26 Thread Richard Biener
On Sun, Aug 25, 2024 at 10:28 PM Andrew Pinski wrote: > > When expanding popcount used for equal to 1 (or rather > __builtin_stdc_has_single_bit), > the wrong mode was bsing used for the mode of the store flags. We were using > the mode > of the argument to popcount but since popcount's return v

[PATCH] expand: Use the correct mode for store flags for popcount [PR116480]

2024-08-25 Thread Andrew Pinski
When expanding popcount used for equal to 1 (or rather __builtin_stdc_has_single_bit), the wrong mode was bsing used for the mode of the store flags. We were using the mode of the argument to popcount but since popcount's return value is always int, the mode of the expansion here should have bee