public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40266]  New: march-native gives -mno-sse4, but cpuinfo sse4_1
@ 2009-05-27  5:29 seandarcy2 at gmail dot com
  2009-05-27  8:07 ` [Bug target/40266] " ubizjak at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: seandarcy2 at gmail dot com @ 2009-05-27  5:29 UTC (permalink / raw)
  To: gcc-bugs

If I run gcc -fverbose-asm -mtune=native -march=native -S x.c

I get
cat x.s:
       .file   "x.c"
# GNU C (GCC) version 4.4.0 20090506 (Red Hat 4.4.0-4) (x86_64-redhat-linux)
#       compiled by GNU C version 4.4.0 20090506 (Red Hat 4.4.0-4), GMP
version 4.2.4, MPFR version 2.4.1.
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed:  x.c -march=core2 -mcx16 -msahf --param l1-cache-size=32
# --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2
# -fverbose-asm
# options enabled:  -falign-loops -fargument-alias
...................
# -mfp-ret-in-387 -mfused-madd -mglibc -mieee-fp -mmmx -mno-sse4
# -mpush-args -mred-zone -msahf -msse -msse2 -msse3 -mssse3
............

cat /proc/cpuinfo:

flags           : .....sse sse2 .... ssse3 .... sse4_1 ...

It appears that since the cpu doesn't support both sse4.1 and sse4.2, gcc
march-native disables sse4 altogether. Obviously, -msse4.1 -mno-sse4.2 would be
better.


-- 
           Summary: march-native gives -mno-sse4, but cpuinfo sse4_1
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: seandarcy2 at gmail dot com
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
@ 2009-05-27  8:07 ` ubizjak at gmail dot com
  2009-05-27 14:08 ` hjl dot tools at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2009-05-27  8:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ubizjak at gmail dot com  2009-05-27 08:06 -------
(In reply to comment #0)

> cat /proc/cpuinfo:
> 
> flags           : .....sse sse2 .... ssse3 .... sse4_1 ...

Please post complete /proc/cpuinfo.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
  2009-05-27  8:07 ` [Bug target/40266] " ubizjak at gmail dot com
@ 2009-05-27 14:08 ` hjl dot tools at gmail dot com
  2009-05-27 14:40 ` hjl at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-27 14:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2009-05-27 14:08 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01739.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |05/msg01739.html
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-05-27 14:08:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
  2009-05-27  8:07 ` [Bug target/40266] " ubizjak at gmail dot com
  2009-05-27 14:08 ` hjl dot tools at gmail dot com
@ 2009-05-27 14:40 ` hjl at gcc dot gnu dot org
  2009-05-27 14:54 ` hjl at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-27 14:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl at gcc dot gnu dot org  2009-05-27 14:39 -------
Subject: Bug 40266

Author: hjl
Date: Wed May 27 14:39:23 2009
New Revision: 147913

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147913
Log:
2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>

        PR target/40266
        * config/i386/driver-i386.c (host_detect_local_cpu): Support
        AVX, SSE4, AES, PCLMUL and POPCNT.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/driver-i386.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (2 preceding siblings ...)
  2009-05-27 14:40 ` hjl at gcc dot gnu dot org
@ 2009-05-27 14:54 ` hjl at gcc dot gnu dot org
  2009-05-27 14:54 ` hjl dot tools at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-27 14:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl at gcc dot gnu dot org  2009-05-27 14:54 -------
Subject: Bug 40266

Author: hjl
Date: Wed May 27 14:54:00 2009
New Revision: 147914

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147914
Log:
2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>

        PR target/40266
        * config/i386/driver-i386.c (host_detect_local_cpu): Support
        AVX, SSE4, AES, PCLMUL and POPCNT.

Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/i386/driver-i386.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (3 preceding siblings ...)
  2009-05-27 14:54 ` hjl at gcc dot gnu dot org
@ 2009-05-27 14:54 ` hjl dot tools at gmail dot com
  2009-05-27 15:10 ` seandarcy2 at gmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-27 14:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2009-05-27 14:54 -------
Fixed.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (4 preceding siblings ...)
  2009-05-27 14:54 ` hjl dot tools at gmail dot com
@ 2009-05-27 15:10 ` seandarcy2 at gmail dot com
  2009-07-22 10:33 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: seandarcy2 at gmail dot com @ 2009-05-27 15:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from seandarcy2 at gmail dot com  2009-05-27 15:10 -------
(In reply to comment #1)
> (In reply to comment #0)
> 
> > cat /proc/cpuinfo:
> > 
> > flags           : .....sse sse2 .... ssse3 .... sse4_1 ...
> 
> Please post complete /proc/cpuinfo.
> 

It's quad-core, so here's just 0 cpu:

[root@intel64-office ffmpeg]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
stepping        : 10
cpu MHz         : 2003.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2
ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm
bogomips        : 6000.06
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (5 preceding siblings ...)
  2009-05-27 15:10 ` seandarcy2 at gmail dot com
@ 2009-07-22 10:33 ` jakub at gcc dot gnu dot org
  2009-07-22 23:24 ` seandarcy2 at gmail dot com
  2009-07-23  2:34 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-22 10:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.1                       |4.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (6 preceding siblings ...)
  2009-07-22 10:33 ` jakub at gcc dot gnu dot org
@ 2009-07-22 23:24 ` seandarcy2 at gmail dot com
  2009-07-23  2:34 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: seandarcy2 at gmail dot com @ 2009-07-22 23:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from seandarcy2 at gmail dot com  2009-07-22 23:24 -------
The target milestone was just changed to 4.4.2 from 4.4.1.

Why? Doesn't the fix from H.J.Lu below work?

Indeed, isn't the fix already in?

If so, shouldn't this be marked FIXED?

sean


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/40266] march-native gives -mno-sse4, but cpuinfo sse4_1
  2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
                   ` (7 preceding siblings ...)
  2009-07-22 23:24 ` seandarcy2 at gmail dot com
@ 2009-07-23  2:34 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-07-23  2:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl dot tools at gmail dot com  2009-07-23 02:34 -------
Fixed.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.4.2                       |4.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40266


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-23  2:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-27  5:29 [Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1 seandarcy2 at gmail dot com
2009-05-27  8:07 ` [Bug target/40266] " ubizjak at gmail dot com
2009-05-27 14:08 ` hjl dot tools at gmail dot com
2009-05-27 14:40 ` hjl at gcc dot gnu dot org
2009-05-27 14:54 ` hjl at gcc dot gnu dot org
2009-05-27 14:54 ` hjl dot tools at gmail dot com
2009-05-27 15:10 ` seandarcy2 at gmail dot com
2009-07-22 10:33 ` jakub at gcc dot gnu dot org
2009-07-22 23:24 ` seandarcy2 at gmail dot com
2009-07-23  2:34 ` hjl dot tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).