"There's your first mistake. Hint: people who are able to hand deconstruct
the output of a compiler's code generator and point out exactly how
instructions are wasted are never correctly referred to as an "idiot", in
the context of computer programming at least."
gdb -batch -ex 'set disassembly-fl
On 5/29/23 15:01, Dave Blanchard wrote:
He's certainly got a few things wrong from time to time in his zeal, but his overall
point seems to stand. Do you have any rebuttals of his argument to present yourself? Or
do you prefer to just sit back and wait on "y'all" to do the heavy lifting?
He'
On Sun, 28 May 2023 15:50:41 +0800
Julian Waters via Gcc wrote:
> Man, these clang fanboys sure are getting out of hand
Strange reasoning you've used here. Is this sort of like how if I'm against
Donald Trump, then I must be for Hillary Clinton, or vice versa?
That's called a "false dichotomy"
Man, these clang fanboys sure are getting out of hand
I feel like all this garbage can be easily resolved by y'all showing this
idiot the exact proper options required and attaching the resulting
compiled assembly exactly as he wants it, or if gcc doesn't compile the
exact assembly he wants, expla
On 5/27/23 17:04, Stefan Kanthak wrote:
--- .c ---
int ispowerof2(unsigned long long argument) {
return __builtin_popcountll(argument) == 1;
}
--- EOF ---
GCC 13.3gcc -m32 -march=alderlake -O3
gcc -m32 -march=sapphirerapids -O3
gcc -m32 -mpopcnt -mtune=sapphi
On Sat, 27 May 2023 at 23:03, Stefan Kanthak wrote:
>
> "Andrew Pinski" wrote:
>
> > On Sat, May 27, 2023 at 2:38 PM Stefan Kanthak
> > wrote:
> >>
> >> "Jakub Jelinek" wrote, completely clueless:
> >>
> >>> On Sat, May 27, 2023 at 11:04:11PM +0200, Stefan Kanthak wrote:
> OUCH: popcnt wr
"Andrew Pinski" wrote:
> On Sat, May 27, 2023 at 2:38 PM Stefan Kanthak
> wrote:
>>
>> "Jakub Jelinek" wrote, completely clueless:
>>
>>> On Sat, May 27, 2023 at 11:04:11PM +0200, Stefan Kanthak wrote:
OUCH: popcnt writes the WHOLE result register, there is ABSOLUTELY
no need t
On Sat, May 27, 2023 at 2:38 PM Stefan Kanthak wrote:
>
> "Jakub Jelinek" wrote, completely clueless:
>
> > On Sat, May 27, 2023 at 11:04:11PM +0200, Stefan Kanthak wrote:
> >> OUCH: popcnt writes the WHOLE result register, there is ABSOLUTELY
> >> no need to clear it beforehand nor to clea
"Jakub Jelinek" wrote, completely clueless:
> On Sat, May 27, 2023 at 11:04:11PM +0200, Stefan Kanthak wrote:
>> OUCH: popcnt writes the WHOLE result register, there is ABSOLUTELY
>> no need to clear it beforehand nor to clear the higher 24 bits
>> afterwards!
>
> Except that there i
On Sat, May 27, 2023 at 11:04:11PM +0200, Stefan Kanthak wrote:
> OUCH: popcnt writes the WHOLE result register, there is ABSOLUTELY
> no need to clear it beforehand nor to clear the higher 24 bits
> afterwards!
Except that there is. See https://gcc.gnu.org/PR62011 for details.
--- .c ---
int ispowerof2(unsigned long long argument) {
return __builtin_popcountll(argument) == 1;
}
--- EOF ---
GCC 13.3gcc -m32 -march=alderlake -O3
gcc -m32 -march=sapphirerapids -O3
gcc -m32 -mpopcnt -mtune=sapphirerapids -O3
https://gcc.godbolt.org/z/cToYrrY
11 matches
Mail list logo