gcc-12-20230526 is now available

2023-05-26 Thread GCC Administrator via Gcc
Snapshot gcc-12-20230526 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20230526/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread David Brown via Gcc
On 26/05/2023 17:49, Stefan Kanthak wrote: I don't like to argue with idiots: they beat me with experience! Stefan Stefan, you are clearly not happy about the /free/ compiler you are using, and its /free/ documentation (which, despite its flaws, is better than I have seen for most other co

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 15:34, Stefan Kanthak wrote: >> >> "Jonathan Wakely" wrote: >> >> > On Fri, 26 May 2023 at 14:55, Stefan Kanthak >> > wrote: >> >> [...] >> >> >> NOT obvious is but that -m -march= does not clear any >> >> not supported in , i.e the last one

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
You wrote: >在 2023-05-26 14:46, Stefan Kanthak 写道: >> OOPS: why does GCC (ab)use the SSE2 alias "Willamette New Instruction Set" >> (... ...) >> OUCH: why does it FAIL to REALLY use SSE2, as shown in the comments on the >>right side? > > Please stop yelling like that. It makes you look lik

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 15:48, Stefan Kanthak wrote: >> >> "Jakub Jelinek" wrote: >> >> [...] >> >> > And for -m32 it is also the last option that wins, but as with >> > many other cases just last one from certain set of options. [...] >> > The -mISA options are proces

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread LIU Hao via Gcc
在 2023-05-26 14:46, Stefan Kanthak 写道: OOPS: why does GCC (ab)use the SSE2 alias "Willamette New Instruction Set" (... ...) OUCH: why does it FAIL to REALLY use SSE2, as shown in the comments on the right side? Please stop yelling like that. It makes you look like a naughty pupil. 14

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 15:34, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023 at 14:55, Stefan Kanthak > > wrote: > > [...] > > >> NOT obvious is but that -m -march= does not clear any > >> not supported in , i.e the last one does NOT win here. > > > > The last -ma

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 15:48, Stefan Kanthak wrote: > > "Jakub Jelinek" wrote: > > [...] > > > And for -m32 it is also the last option that wins, but as with > > many other cases just last one from certain set of options. [...] > > The -mISA options are processed left to right after > > as well a

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jakub Jelinek" wrote: [...] > And for -m32 it is also the last option that wins, but as with > many other cases just last one from certain set of options. [...] > The -mISA options are processed left to right after as well as BEFORE > setting base from -march=. In other words: although -marc

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 14:55, Stefan Kanthak wrote: [...] >> NOT obvious is but that -m -march= does not clear any >> not supported in , i.e the last one does NOT win here. > > The last -march option selects the base set of instructions. The -mISA > options modify

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jakub Jelinek via Gcc
On Fri, May 26, 2023 at 03:07:59PM +0100, Jonathan Wakely wrote: > > These points are obvious. > > NOT obvious is but that -m -march= does not clear any > > not supported in , i.e the last one does NOT win here. > > The last -march option selects the base set of instructions. The -mISA > options

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 14:55, Stefan Kanthak wrote: > > "Jakub Jelinek" wrote: > > > On Fri, May 26, 2023 at 02:19:54PM +0200, Stefan Kanthak wrote: > >> > I find it very SURPRISING that you're only just learning the basics of > >> > how to use gcc NOW, after YELLING about all the OUCH. > >> > >>

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jakub Jelinek" wrote: > On Fri, May 26, 2023 at 02:19:54PM +0200, Stefan Kanthak wrote: >> > I find it very SURPRISING that you're only just learning the basics of >> > how to use gcc NOW, after YELLING about all the OUCH. >> >> I'm NOT surprised that you don't grok it! >> >> gcc -msse4.1 -m32

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Nicholas Vinson via Gcc
On 5/26/23 08:42, Stefan Kanthak wrote: I could have added PROPERLY, because that's where it CLEARLY fails, as shown by the generated unoptimised code. From what I've seen so far, I find your arguments unconvincing. In this thread alone, you've proven that you don't know how to properly cont

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Mark Wielaard
Stefan, On Fri, 2023-05-26 at 14:22 +0200, Stefan Kanthak wrote: > "Jonathan Wakely" wrote: > > And when did you report it to bugzilla? > > > > Nobody reads your silly webpage. > > Thanks stupid. I don't read your silly bugzilla! Stop calling people stupid or dumbass. People are trying to hel

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 13:23, Stefan Kanthak wrote: >> >> "Jonathan Wakely" wrote: >> >> > On Fri, 26 May 2023 at 12:42, Stefan Kanthak wrote: >> >> Why does the documentation FAIL to specify that CPU features given by >> >> -m* override -m32 or enables them in ADDITI

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jakub Jelinek via Gcc
On Fri, May 26, 2023 at 02:19:54PM +0200, Stefan Kanthak wrote: > > I find it very SURPRISING that you're only just learning the basics of > > how to use gcc NOW, after YELLING about all the OUCH. > > I'm NOT surprised that you don't grok it! > > gcc -msse4.1 -m32 -march=core2 ... > > Which -m*

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 13:23, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023 at 12:42, Stefan Kanthak wrote: > >> Why does the documentation FAIL to specify that CPU features given by > >> -m* override -m32 or enables them in ADDITION to those enabled by -march=? > >

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 13:09, Stefan Kanthak wrote: >> >> "Jonathan Wakely" wrote: >> >> > On Fri, 26 May 2023 at 12:29, Stefan Kanthak >> > wrote: >> >> OUCH: as shown in https://godbolt.org/z/b43cjGdY9 -m32 ALONE but >> >> generates SSE2 instructions which D

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 13:09, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023 at 12:29, Stefan Kanthak > > wrote: > >> > >> "Jakub Jelinek" wrote: > >> > If you aren't able to read the documentation, it is hard to argue. > >> > >> When the documentation is wrong or

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 12:42, Stefan Kanthak wrote: >> Why does the documentation FAIL to specify that CPU features given by >> -m* override -m32 or enables them in ADDITION to those enabled by -march=? > > Because it's obvious. If you ask for sse2 you get it. ARGH!

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 13:09, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023 at 12:29, Stefan Kanthak > > wrote: > >> OUCH: as shown in https://godbolt.org/z/b43cjGdY9 -m32 ALONE but > >> generates SSE2 instructions which DONT run on ANY i386 system! > > > >

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 12:29, Stefan Kanthak wrote: >> >> "Jakub Jelinek" wrote: >> >> > On Fri, May 26, 2023 at 10:59:03AM +0200, Stefan Kanthak wrote: >> >> 3) SSE4.1 is supported since Core2, but -march=core2 fails to enable it. >> >>That's bad, REALITY CHECK,

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 12:42, Stefan Kanthak wrote: > Why does the documentation FAIL to specify that CPU features given by > -m* override -m32 or enables them in ADDITION to those enabled by -march=? Because it's obvious. If you ask for sse2 you get it. I find it very SURPRISING that you're onl

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 12:29, Stefan Kanthak wrote: > > "Jakub Jelinek" wrote: > > > On Fri, May 26, 2023 at 10:59:03AM +0200, Stefan Kanthak wrote: > >> 3) SSE4.1 is supported since Core2, but -march=core2 fails to enable it. > >>That's bad, REALITY CHECK, please! > > > > You're wrong. > > S

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jakub Jelinek" wrote: > On Fri, May 26, 2023 at 10:59:03AM +0200, Stefan Kanthak wrote: >> 3) SSE4.1 is supported since Core2, but -march=core2 fails to enable it. >>That's bad, REALITY CHECK, please! > > You're wrong. > SSE4.1 first appeared in the 45nm versions of Core2, the 65nm versions

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Nicholas Vinson via Gcc
On 5/26/23 02:46, Stefan Kanthak wrote: Hi, compile the following function on a system with Core2 processor (released January 2008) for the 32-bit execution environment: --- demo.c --- int ispowerof2(unsigned long long argument) { return (argument & argument - 1) == 0; } --- EOF --- GCC

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jakub Jelinek" wrote: > On Fri, May 26, 2023 at 10:59:03AM +0200, Stefan Kanthak wrote: >> 3) SSE4.1 is supported since Core2, but -march=core2 fails to enable it. >>That's bad, REALITY CHECK, please! > > You're wrong. > SSE4.1 first appeared in the 45nm versions of Core2, the 65nm versions

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 10:31, Hagen Paul Pfeifer wrote: > > * Jonathan Wakely via Gcc | 2023-05-26 08:30:06 [+0100]: > > >On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: > > > >> > GCC 13.3: gcc -m32 -O3 demo.c > >> > > >> > NOTE: -mtune=native is the default! > >> > >> You need to use -m

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 10:06, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023 at 09:00, Stefan Kanthak > > wrote: > >> > >> "Jonathan Wakely" wrote: > >> > >> > On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, > >> > wrote: > >> > > >> >> On Thu, May 25, 2023 at

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jakub Jelinek via Gcc
On Fri, May 26, 2023 at 10:59:03AM +0200, Stefan Kanthak wrote: > 3) SSE4.1 is supported since Core2, but -march=core2 fails to enable it. >That's bad, REALITY CHECK, please! You're wrong. SSE4.1 first appeared in the 45nm versions of Core2, the 65nm versions didn't have it. The supported CPU

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023 at 09:00, Stefan Kanthak wrote: >> >> "Jonathan Wakely" wrote: >> >> > On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: >> > >> >> On Thu, May 25, 2023 at 11:56?PM Stefan Kanthak >> >> wrote: >> >>> >> >>> Hi, >> >>> >> >>> compile the fo

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023 at 09:00, Stefan Kanthak wrote: > > "Jonathan Wakely" wrote: > > > On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: > > > >> On Thu, May 25, 2023 at 11:56?PM Stefan Kanthak > >> wrote: > >>> > >>> Hi, > >>> > >>> compile the following function on a system with Core2

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Sam James via Gcc
"Stefan Kanthak" writes: > "Jonathan Wakely" wrote: > >> On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: >> >>> On Thu, May 25, 2023 at 11:56?PM Stefan Kanthak >>> wrote: Hi, compile the following function on a system with Core2 processor (released January 20

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Hagen Paul Pfeifer
* Jonathan Wakely via Gcc | 2023-05-26 08:30:06 [+0100]: >On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: > >> > GCC 13.3: gcc -m32 -O3 demo.c >> > >> > NOTE: -mtune=native is the default! >> >> You need to use -march=native and not -mtune=native to turn on >> the architecture featu

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Stefan Kanthak
"Jonathan Wakely" wrote: > On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: > >> On Thu, May 25, 2023 at 11:56?PM Stefan Kanthak >> wrote: >>> >>> Hi, >>> >>> compile the following function on a system with Core2 processor >>> (released January 2008) for the 32-bit execution environment

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Jonathan Wakely via Gcc
On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote: > On Thu, May 25, 2023 at 11:56 PM Stefan Kanthak > wrote: > > > > Hi, > > > > compile the following function on a system with Core2 processor > > (released January 2008) for the 32-bit execution environment: > > > > --- demo.c --- > > int

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Andrew Pinski via Gcc
On Thu, May 25, 2023 at 11:56 PM Stefan Kanthak wrote: > > Hi, > > compile the following function on a system with Core2 processor > (released January 2008) for the 32-bit execution environment: > > --- demo.c --- > int ispowerof2(unsigned long long argument) > { > return (argument & argument