public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] AMD Turion64x2 CFLAGS
@ 2009-02-12 11:52 Zhang Jun
  2009-02-12 12:03 ` Joost Roeleveld
  2009-02-12 13:22 ` Volker Armin Hemmann
  0 siblings, 2 replies; 6+ messages in thread
From: Zhang Jun @ 2009-02-12 11:52 UTC (permalink / raw
  To: gentoo-user

Hi list,

my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
testing and Gentoo on it,
from Debian there is no SSE3 in /proc/cpuinfo,
and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
gentoo,  and I can not see SSE3 in cpuinfo also,

I emerged x86info, and SSE3 is in its output:

#x86info
x86info v1.21.  Dave Jones 2001-2007
Feedback to <davej@redhat.com>.

Found 2 CPUs
--------------------------------------------------------------------------
CPU #1
Family: 15 Model: 72 Stepping: 2
CPU Model : Turion 64 X2 (BH-F2)
Processor name string: AMD Turion(tm) 64 X2 Mobile Technology TL-52

Feature flags:
 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 clflsh mmx fxsr sse sse2 ht sse3 cmpxchg16b
Extended feature flags:
 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 nx mmxext mmx fxsr ffxsr rdtscp lm 3dnowext 3dnow lahf/sahf
CmpLegacy svm ExtApicSpace LockMovCr0

SVM: revision 1, 64 ASIDs
Address Size: 48 bits virtual, 40 bits physical
The physical package has 2 of 2 possible cores implemented.
...
...


my question is:  I can not see SSE3 in cpuinfo because I did not use
"-msse3" in CFLAGS ?



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

* Re: [gentoo-user] AMD Turion64x2 CFLAGS
  2009-02-12 11:52 [gentoo-user] AMD Turion64x2 CFLAGS Zhang Jun
@ 2009-02-12 12:03 ` Joost Roeleveld
  2009-02-12 12:34   ` Zhang Jun
  2009-02-12 13:22 ` Volker Armin Hemmann
  1 sibling, 1 reply; 6+ messages in thread
From: Joost Roeleveld @ 2009-02-12 12:03 UTC (permalink / raw
  To: gentoo-user

On Thu, February 12, 2009 12:52 pm, Zhang Jun wrote:
> Hi list,
>
> my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
> testing and Gentoo on it,
> from Debian there is no SSE3 in /proc/cpuinfo,
> and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
> gentoo,  and I can not see SSE3 in cpuinfo also,
>
> I emerged x86info, and SSE3 is in its output:
>
> #x86info
> x86info v1.21.  Dave Jones 2001-2007
> Feedback to <davej@redhat.com>.
>
> Found 2 CPUs
> --------------------------------------------------------------------------
<snipped output>

> my question is:  I can not see SSE3 in cpuinfo because I did not use
> "-msse3" in CFLAGS ?

Hi,

I would suspect that for your CPU using "-march=athlon-fx" would be more
beneficial as your CPU has the x86_64 instruction set as well?

--
Joost




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

* Re: [gentoo-user] AMD Turion64x2 CFLAGS
  2009-02-12 12:03 ` Joost Roeleveld
@ 2009-02-12 12:34   ` Zhang Jun
  2009-02-12 12:49     ` Joost Roeleveld
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang Jun @ 2009-02-12 12:34 UTC (permalink / raw
  To: gentoo-user

thanks!
I'm new to gentoo,
I get the CFLAGS from gentoo-wiki(
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Turion64_.2F_X2_.2F_Ultra
)
and I am using 32bit linux.

2009/2/12 Joost Roeleveld <joost@antarean.org>:
> On Thu, February 12, 2009 12:52 pm, Zhang Jun wrote:
>> Hi list,
>>
>> my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
>> testing and Gentoo on it,
>> from Debian there is no SSE3 in /proc/cpuinfo,
>> and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
>> gentoo,  and I can not see SSE3 in cpuinfo also,
>>
>> I emerged x86info, and SSE3 is in its output:
>>
>> #x86info
>> x86info v1.21.  Dave Jones 2001-2007
>> Feedback to <davej@redhat.com>.
>>
>> Found 2 CPUs
>> --------------------------------------------------------------------------
> <snipped output>
>
>> my question is:  I can not see SSE3 in cpuinfo because I did not use
>> "-msse3" in CFLAGS ?
>
> Hi,
>
> I would suspect that for your CPU using "-march=athlon-fx" would be more
> beneficial as your CPU has the x86_64 instruction set as well?
>
> --
> Joost
>
>
>



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

* Re: [gentoo-user] AMD Turion64x2 CFLAGS
  2009-02-12 12:34   ` Zhang Jun
@ 2009-02-12 12:49     ` Joost Roeleveld
  0 siblings, 0 replies; 6+ messages in thread
From: Joost Roeleveld @ 2009-02-12 12:49 UTC (permalink / raw
  To: gentoo-user

On Thu, February 12, 2009 1:34 pm, Zhang Jun wrote:
> thanks!
> I'm new to gentoo,
> I get the CFLAGS from gentoo-wiki(
> http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Turion64_.2F_X2_.2F_Ultra
> )
> and I am using 32bit linux.
>
> 2009/2/12 Joost Roeleveld <joost@antarean.org>:
>> On Thu, February 12, 2009 12:52 pm, Zhang Jun wrote:
>>> Hi list,
>>>
>>> my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
>>> testing and Gentoo on it,
>>> from Debian there is no SSE3 in /proc/cpuinfo,
>>> and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
>>> gentoo,  and I can not see SSE3 in cpuinfo also,
>>>
>>> I emerged x86info, and SSE3 is in its output:
>>>
>>> #x86info
>>> x86info v1.21.  Dave Jones 2001-2007
>>> Feedback to <davej@redhat.com>.
>>>
>>> Found 2 CPUs
>>> --------------------------------------------------------------------------
>> <snipped output>
>>
>>> my question is:  I can not see SSE3 in cpuinfo because I did not use
>>> "-msse3" in CFLAGS ?
>>
>> Hi,
>>
>> I would suspect that for your CPU using "-march=athlon-fx" would be more
>> beneficial as your CPU has the x86_64 instruction set as well?
>>
>> --
>> Joost
>>

Thank you for that link, I wasn't aware of it.
Please, for future reference, try to avoid top-posting, it makes following
conversations difficult.
Try to keep your replies at the bottom of the email.

According to that list, you need to add "-msse3" to your CFLAGS. Which
makes sense as "-march=athlon-xp" is actually for an older CPU which
didn't have sse3 support yet.

--
Joost




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

* Re: [gentoo-user] AMD Turion64x2 CFLAGS
  2009-02-12 11:52 [gentoo-user] AMD Turion64x2 CFLAGS Zhang Jun
  2009-02-12 12:03 ` Joost Roeleveld
@ 2009-02-12 13:22 ` Volker Armin Hemmann
  2009-02-13  0:57   ` Zhang Jun
  1 sibling, 1 reply; 6+ messages in thread
From: Volker Armin Hemmann @ 2009-02-12 13:22 UTC (permalink / raw
  To: gentoo-user

On Donnerstag 12 Februar 2009, Zhang Jun wrote:
> Hi list,
>
> my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
> testing and Gentoo on it,
> from Debian there is no SSE3 in /proc/cpuinfo,

I am sure there is. But it is called 'pni' - its original name.


> and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
> gentoo,  and I can not see SSE3 in cpuinfo also,
>
> I emerged x86info, and SSE3 is in its output:
>
> #x86info
> x86info v1.21.  Dave Jones 2001-2007
> Feedback to <davej@redhat.com>.
>
> Found 2 CPUs
> --------------------------------------------------------------------------
> CPU #1
> Family: 15 Model: 72 Stepping: 2
> CPU Model : Turion 64 X2 (BH-F2)
> Processor name string: AMD Turion(tm) 64 X2 Mobile Technology TL-52
>
> Feature flags:
>  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
> pse36 clflsh mmx fxsr sse sse2 ht sse3 cmpxchg16b
> Extended feature flags:
>  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
> pse36 nx mmxext mmx fxsr ffxsr rdtscp lm 3dnowext 3dnow lahf/sahf
> CmpLegacy svm ExtApicSpace LockMovCr0
>
> SVM: revision 1, 64 ASIDs
> Address Size: 48 bits virtual, 40 bits physical
> The physical package has 2 of 2 possible cores implemented.
> ...
> ...
>
>
> my question is:  I can not see SSE3 in cpuinfo because I did not use
> "-msse3" in CFLAGS ?

no. Because it is called 'pni'.

How about this cflags:
march=k8-sse3 -O2 -msse3 (in case march gets filtered) -pipe
?
on amd64 fomit-frame-pointer isn't needed anymore.





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

* Re: [gentoo-user] AMD Turion64x2 CFLAGS
  2009-02-12 13:22 ` Volker Armin Hemmann
@ 2009-02-13  0:57   ` Zhang Jun
  0 siblings, 0 replies; 6+ messages in thread
From: Zhang Jun @ 2009-02-13  0:57 UTC (permalink / raw
  To: gentoo-user

2009/2/12 Volker Armin Hemmann <volkerarmin@googlemail.com>:
> On Donnerstag 12 Februar 2009, Zhang Jun wrote:
>> Hi list,
>>
>> my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
>> testing and Gentoo on it,
>> from Debian there is no SSE3 in /proc/cpuinfo,
>
> I am sure there is. But it is called 'pni' - its original name.
>
>
>> and I used CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" on
>> gentoo,  and I can not see SSE3 in cpuinfo also,
>>
>> I emerged x86info, and SSE3 is in its output:
>>
>> #x86info
>> x86info v1.21.  Dave Jones 2001-2007
>> Feedback to <davej@redhat.com>.
>>
>> Found 2 CPUs
>> --------------------------------------------------------------------------
>> CPU #1
>> Family: 15 Model: 72 Stepping: 2
>> CPU Model : Turion 64 X2 (BH-F2)
>> Processor name string: AMD Turion(tm) 64 X2 Mobile Technology TL-52
>>
>> Feature flags:
>>  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
>> pse36 clflsh mmx fxsr sse sse2 ht sse3 cmpxchg16b
>> Extended feature flags:
>>  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
>> pse36 nx mmxext mmx fxsr ffxsr rdtscp lm 3dnowext 3dnow lahf/sahf
>> CmpLegacy svm ExtApicSpace LockMovCr0
>>
>> SVM: revision 1, 64 ASIDs
>> Address Size: 48 bits virtual, 40 bits physical
>> The physical package has 2 of 2 possible cores implemented.
>> ...
>> ...
>>
>>
>> my question is:  I can not see SSE3 in cpuinfo because I did not use
>> "-msse3" in CFLAGS ?
>
> no. Because it is called 'pni'.
>
> How about this cflags:
> march=k8-sse3 -O2 -msse3 (in case march gets filtered) -pipe
> ?
> on amd64 fomit-frame-pointer isn't needed anymore.
>
>
>
>



thanks, I will add sse3 in my make.conf



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

end of thread, other threads:[~2009-02-13  0:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 11:52 [gentoo-user] AMD Turion64x2 CFLAGS Zhang Jun
2009-02-12 12:03 ` Joost Roeleveld
2009-02-12 12:34   ` Zhang Jun
2009-02-12 12:49     ` Joost Roeleveld
2009-02-12 13:22 ` Volker Armin Hemmann
2009-02-13  0:57   ` Zhang Jun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox