[Issue 5612] core.cpuid broken on 64

2011-02-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5612


Russel Winder rus...@russel.org.uk changed:

   What|Removed |Added

 CC||rus...@russel.org.uk


--- Comment #1 from Russel Winder rus...@russel.org.uk 2011-02-19 08:44:59 
PST ---
I ran the program on my twin Xeon workstation running Ubuntu 10.10 Maverick
Meerkat:

| dmd -m32 issue_5612.d  issue_5612
4
| dmd -m64 issue_5612.d  issue_5612
1
| uname -a
Linux anglides 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011
x86_64 GNU/Linux
| cat /proc/cpuinfo
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 23
model name: Intel(R) Xeon(R) CPU   E5410  @ 2.33GHz
stepping: 6
cpu MHz: 2327.542
cache size: 6144 KB
physical id: 0
siblings: 4
core id: 0
cpu cores: 4
apicid: 0
initial apicid: 0
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
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 lm
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm dts tpr_shadow vnmi
flexpriority
bogomips: 4655.08
clflush size: 64
cache_alignment: 64
address sizes: 38 bits physical, 48 bits virtual
power management:

processor: 1
vendor_id: GenuineIntel
cpu family: 6
model: 23
model name: Intel(R) Xeon(R) CPU   E5410  @ 2.33GHz
stepping: 6
cpu MHz: 2327.542
cache size: 6144 KB
physical id: 1
siblings: 4
core id: 0
cpu cores: 4
apicid: 4
initial apicid: 4
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
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 lm
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm dts tpr_shadow vnmi
flexpriority
bogomips: 4655.03
clflush size: 64
cache_alignment: 64
address sizes: 38 bits physical, 48 bits virtual
power management:

processor: 2
vendor_id: GenuineIntel
cpu family: 6
model: 23
model name: Intel(R) Xeon(R) CPU   E5410  @ 2.33GHz
stepping: 6
cpu MHz: 2327.542
cache size: 6144 KB
physical id: 0
siblings: 4
core id: 1
cpu cores: 4
apicid: 1
initial apicid: 1
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
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 lm
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm dts tpr_shadow vnmi
flexpriority
bogomips: 4655.03
clflush size: 64
cache_alignment: 64
address sizes: 38 bits physical, 48 bits virtual
power management:

processor: 3
vendor_id: GenuineIntel
cpu family: 6
model: 23
model name: Intel(R) Xeon(R) CPU   E5410  @ 2.33GHz
stepping: 6
cpu MHz: 2327.542
cache size: 6144 KB
physical id: 1
siblings: 4
core id: 1
cpu cores: 4
apicid: 5
initial apicid: 5
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
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 lm
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm dts tpr_shadow vnmi
flexpriority
bogomips: 4655.01
clflush size: 64
cache_alignment: 64
address sizes: 38 bits physical, 48 bits virtual
power management:

processor: 4
vendor_id: GenuineIntel
cpu family: 6
model: 23
model name: Intel(R) Xeon(R) CPU   E5410  @ 2.33GHz
stepping: 6
cpu MHz: 2327.542
cache size: 6144 KB
physical id: 0
siblings: 4
core id: 2
cpu cores: 4
apicid: 2
initial apicid: 2
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
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 lm
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm dts tpr_shadow vnmi
flexpriority
bogomips: 4654.99
clflush size: 64
cache_alignment: 64
address sizes: 38 bits physical, 48 bits virtual
power management:

processor: 5
vendor_id: GenuineIntel
cpu family: 6

[Issue 5612] core.cpuid broken on 64

2011-02-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5612


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #2 from Don clugd...@yahoo.com.au 2011-02-19 11:40:40 PST ---
core.cpuid relies on inline assembler. There is currently no 64 bit version of
the code, so I wouldn't expect it to work. I would expect it to just be
versioned out. Is it actually getting run at all?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---