public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49128] New: gcc -mtune=native generates unsoported instructions
@ 2011-05-23 16:47 nathanael.schaeffer+ml at gmail dot com
  2011-05-23 17:32 ` [Bug c/49128] gcc -mtune=native generates unsuported instructions redi at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: nathanael.schaeffer+ml at gmail dot com @ 2011-05-23 16:47 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: gcc -mtune=native generates unsoported instructions
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nathanael.schaeffer+ml@gmail.com


With gcc (GCC) 4.6.0 20110513 (prerelease)
I compile on my laptop : 
----
Intel(R) Pentium(R) CPU        U5400  @ 1.20GHz
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm 
pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl e
st tm2 ssse3 cx16 xtpr pdcm popcnt lahf_lm arat dts
----

then "gcc -mtune=native" generates unsuported instructions like PINSRD (which
is part of SSE4.1 according to wikipedia, not supported by this CPU)
I guess -mtune=native uncorrectly detects this CPU in version 4.6.0
Version 4.5.x did work correctly.

WORKAROUND: use -mtune=core2


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

end of thread, other threads:[~2011-05-25 13:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 16:47 [Bug c/49128] New: gcc -mtune=native generates unsoported instructions nathanael.schaeffer+ml at gmail dot com
2011-05-23 17:32 ` [Bug c/49128] gcc -mtune=native generates unsuported instructions redi at gcc dot gnu.org
2011-05-23 18:55 ` [Bug c/49128] -mtune=native generates unsupported instructions hjl.tools at gmail dot com
2011-05-23 21:08 ` nathanael.schaeffer+ml at gmail dot com
2011-05-23 21:11 ` nathanael.schaeffer+ml at gmail dot com
2011-05-24 17:59 ` [Bug c/49128] -march=native " hjl at gcc dot gnu.org
2011-05-24 18:11 ` hjl at gcc dot gnu.org
2011-05-24 18:16 ` hjl.tools at gmail dot com
2011-05-25  6:53 ` Joost.VandeVondele at pci dot uzh.ch
2011-05-25  7:33 ` jakub at gcc dot gnu.org
2011-05-25 11:57 ` Joost.VandeVondele at pci dot uzh.ch
2011-05-25 12:44 ` jakub at gcc dot gnu.org
2011-05-25 13:31 ` Joost.VandeVondele at pci dot uzh.ch

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).